12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824 |
- using PaintDotNet.Base.CommTool;
- using PaintDotNet.DbOpreate.DbBll;
- using PaintDotNet.Base.SettingModel;
- using System;
- using System.Drawing;
- using System.IO;
- using System.Text.RegularExpressions;
- using System.Windows.Forms;
- using System.Linq;
- using System.Collections;
- using PaintDotNet.Instrument;
- namespace PaintDotNet.Setting
- {
- /// <summary>
- /// 设置->常规设置
- /// </summary>
- internal partial class GeneralSettingDialog : PdnBaseForm
- {
- private UserInfoModel userInfo = Startup.instance.userInfo;
- private ConfigModel config = Startup.instance.configModel;
- private GroupBox groupBox10;
- private Button button8;
- private TextBox textBox6;
- private Button button7;
- private TextBox textBox5;
- private Button button6;
- private TextBox textBox4;
- private Label label20;
- private Label label19;
- private Label label18;
- private string pattern = @"^\d+(\.\d)?$";
- private ListView listView3;
- private Label label21;
- private Label label22;
- private Label label23;
- private Label label24;
- private Label label25;
- private Panel panel1;
- private RadioButton radioButton7;
- private RadioButton radioButton6;
- private Panel panel2;
- private RadioButton radioButton8;
- private RadioButton radioButton9;
- private Panel panel3;
- private RadioButton radioButton10;
- private RadioButton radioButton11;
- private Panel panel4;
- private RadioButton radioButton12;
- private RadioButton radioButton13;
- private Panel panel5;
- private RadioButton radioButton14;
- private RadioButton radioButton15;
- private GroupBox groupBox15;
- private GroupBox groupBox16;
- private Label label28;
- private Label label27;
- private Label label26;
- private NumericUpDown numericUpDown1;
- private ComboBox comboBox2;
- private Button panel6;
- private AppWorkspace appWorkspace;
- private Button button17;
- private Button button16;
- private Button button15;
- private Button button14;
- private GroupBox groupBox13;
- private Button button19;
- private Button button18;
- private GroupBox groupBox14;
- private GroupBox groupBox17;
- private Button button20;
- private Button button21;
- private GroupBox groupBoxCaptureSave;
- private GroupBox groupBox18;
- private Button button22;
- private CheckBox ckbSaveAndOpen;
- public GroupBox groupBox19;
- private Button btn_Del;
- private ComboBox comboBox_Name;
- private Label label29;
- private Button btn_SaveAs;
- private Button btn_Save;
- private TextBox textBox8;
- private TextBox textBox7;
- private Label label31;
- private Label label30;
- private RadioButton ckNotSave;
- private RadioButton ckAutoSave;
- private RadioButton ckbSave;
- private Button button23;
- private TextBox textBox9;
- private Label label32;
- public GroupBox groupBox20;
- private NumericUpDown numericUpDown3;
- private NumericUpDown numericUpDown2;
- private Label label35;
- private Label label34;
- private Label label33;
- private ComboBox comboBox3;
- private CheckBox checkBox10;
- PaintDotNet.ColorsForm colorsForm;
- public GeneralSettingDialog(AppWorkspace appWorkspace, int status = 0)
- {
- this.appWorkspace = appWorkspace;
- InitializeComponent();
- InitializeLanguageText();
- BasicSettings();
- UserInformation();
- NameRules();
- ChooseLanguage();
- LeftMenu(status);
- PointList();
- CameraSettings();
- OrientationSetting();
- GuideSetting();
- //
- //画板
- //
- this.colorsForm = new ColorsForm();
- this.colorsForm.StartPosition = FormStartPosition.CenterScreen;
- this.colorsForm.UserPrimaryColorChanged += new ColorEventHandler(this.colorsFormUserPrimaryColorChanged);
- this.comboBox3.DataSource = InvariantData.unitparameters.Values.ToList();
- //this.comboBox3.DisplayMember = "value";
- this.comboBox3.SelectedIndex = 1;
- numericUpDown3.Value = config.MaxHeight;
- numericUpDown2.Value = config.MaxWidth;
- comboBox3.SelectedIndex = config.MaxUnit;
- checkBox10.Checked = config.MaxLocked;
- }
- #region [左侧菜单]
- public void LeftMenu(int status = 0)
- {
- //
- // 设置Dialog属性
- //
- ShowInTaskbar = false;
- //
- // 设置listbox的集合和属性
- //
- listBox1.Items.AddRange(InvariantData.settingName);
- if (status == 1)
- {
- listBox1.SetSelected(2, true);
- }
- else
- {
- listBox1.SetSelected(0, true);
- }
- }
- #endregion
- #region [命名规则]
- public void NameRules()
- {
-
- //
- // 设置comboBox1的集合和属性
- //
- comboBox1.Items.AddRange(InvariantData.numberNum);
- comboBox_Name_SelectedIndex();
-
- //当前使用
- comboBox_Name_Refresh();
- #region [设置listView1]
- listView1.View = View.Details;
- listView1.Columns.Add("1", 0, HorizontalAlignment.Center);
- listView1.Columns.Add(PdnResources.GetString("Menu.Set.Generalsettings.format.text"), 60, HorizontalAlignment.Center);
- listView1.Columns.Add(PdnResources.GetString("Menu.instruction.text"), 316, HorizontalAlignment.Center);
- listView1.BeginUpdate();
- var dict = InvariantData.parameterList;
- foreach (var s in dict)
- {
- ListViewItem lvi1 = new ListViewItem();
- lvi1.Text = s.Key;
- lvi1.SubItems.Add(s.Key);
- lvi1.SubItems.Add(s.Value);
- listView1.Items.Add(lvi1);
- }
- listView1.EndUpdate();
- #endregion [设置listView1]
- }
- CreateNameDialog dialog;
- /// <summary>
- /// 命名空间另存
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void btn_SaveAs_Click(object sender, EventArgs e)
- {
- dialog = new CreateNameDialog(this);
- dialog.Text = PdnResources.GetString("Menu.Set.Watermarksettings.Newstyle.text");
- dialog.StartPosition = FormStartPosition.CenterParent;
- dialog.ShowDialog();
- }
- public override void GetCreateName(string name)
- {
- string[] lstName = config.LstNaming.Select(a => a.name).ToArray();
- bool exists = ((IList)lstName).Contains(name);
- if (exists)
- {
- MessageBox.Show("名称重复!");
- return;
- }
- if (Inspect()) return;
- NamingMethod namingMethod = new NamingMethod();
- namingMethod.name = name;
- namingMethod.NamePrefix = textBox1.Text;
- namingMethod.NameFormat = textBox2.Text;
- namingMethod.NumberNum = Convert.ToInt32(comboBox1.SelectedItem);
- namingMethod.NameStatus = radioButton1.Checked == true ? 1 : 2;
- namingMethod.ContinueNum = radioButton1.Checked ? Convert.ToInt32(textBox3.Text) : 1;
- namingMethod.CharZ1 = textBox7.Text;
- namingMethod.CharZ2 = textBox8.Text;
- config.LstNaming.Add(namingMethod);
- config.CurrentName = name;
- //string[] arrs = System.Text.RegularExpressions.Regex.Split(textBox2.Text.Trim(), "%");
- //if (((IList)arrs).Contains("T1")) config.customTxt = "T1";
- //else if (((IList)arrs).Contains("T2")) config.customTxt = "T2";
- //else if (((IList)arrs).Contains("T3")) config.customTxt = "T3";
- //else config.customTxt = "";
- //config.CurrentName = name;
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (!FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- MessageBox.Show(PdnResources.GetString("Menu.mingconventionsavefailed.text"));
- comboBox_Name_Refresh();
- if (ImageIndexDialog.imageIndexDialog != null)
- ImageIndexDialog.imageIndexDialog.comboBox_Name_Refresh(config.CaptureSaveMode);
- comboBox_Name_SelectedIndexChanged(null,null);
- dialog.Close();
- }
- private bool Inspect()
- {
- bool chek = false;
- //if (string.IsNullOrEmpty(textBox1.Text))
- //{
- // MessageBox.Show(PdnResources.GetString("Menu.pleasewriteNameprefix.text"));
- // chek = true;
- //}
- if (string.IsNullOrEmpty(textBox2.Text))
- {
- MessageBox.Show(PdnResources.GetString("Menu.pleaseNameformat.text"));
- chek = true;
- }
- else
- {
- string[] arrs = System.Text.RegularExpressions.Regex.Split(textBox2.Text.Trim(), "%"/*@"(?<=\G.{2})(?!$)"*/);
- foreach (string text in arrs)
- {
- if (text == "") continue;
- //if (!text.Equals("%P") && !text.Equals("%I") && !text.Equals("%h") && !text.Equals("%m")
- // && !text.Equals("%s") && !text.Equals("%Y") && !text.Equals("%M") && !text.Equals("%D")
- // && !text.Equals("%G") && !text.Equals("%U") && !text.Equals("%T1") && !text.Equals("%T2") && !text.Equals("%T3"))
- if (!text.Equals("P") && !text.Equals("I") && !text.Equals("h") && !text.Equals("m")
- && !text.Equals("s") && !text.Equals("Y") && !text.Equals("M") && !text.Equals("D")
- && !text.Equals("G") && !text.Equals("U") && !text.Equals("N") && !text.Equals("E")
- && !text.Equals("T1") && !text.Equals("T2") && !text.Equals("T3")
- && !text.Equals("Z1") && !text.Equals("Z2") && !text.Equals("R"))
- {
- MessageBox.Show("名称格式不合法, 请检查");
- chek = true;
- }
- }
- if (Islegal())
- {
- MessageBox.Show("文件名称中不能包含 \\ / : * ? \" < > | ");
- chek = true;
- }
- }
- if (radioButton1.Checked && !(Regex.IsMatch(textBox3.Text, pattern)))
- {
- MessageBox.Show(PdnResources.GetString("Menu.Numberscanbeentet.text") + "!");
- chek = true;
- }
- return chek;
- }
- /// <summary>
- /// 刷新名称
- /// </summary>
- private void comboBox_Name_Refresh()
- {
- this.comboBox_Name.SelectedIndexChanged -= new System.EventHandler(this.comboBox_Name_SelectedIndexChanged);
- string[] lstName = config.LstNaming.Select(a => a.name).ToArray();
- this.comboBox_Name.DataSource = lstName;
- this.comboBox_Name.Text = config.CurrentName;
- this.comboBox_Name.SelectedIndexChanged += new System.EventHandler(this.comboBox_Name_SelectedIndexChanged);
- }
- /// <summary>
- /// 条目选择后刷新
- /// </summary>
- private void comboBox_Name_SelectedIndex()
- {
- string CurrentName = config.CurrentName;
- if (config.LstNaming.Count > 0)
- {
- foreach (NamingMethod item in config.LstNaming)
- {
- if (CurrentName.Equals(item.name))
- {
- textBox1.Text = item.NamePrefix;
- textBox1.MaxLength = 20;
- textBox2.Text = item.NameFormat;
- //radioButton1.Checked = config.NameStatus == 1 ? true : false;
- //radioButton2.Checked = config.NameStatus == 2 ? true : false;
- radioButton1.Checked = true;
- radioButton2.Checked = false;
- textBox3.Text = item.ContinueNum.ToString();
- comboBox1.SelectedIndex = item.NumberNum - 1;
- textBox7.Text = item.CharZ1;
- textBox8.Text = item.CharZ2;
- config.NamePrefix = item.NamePrefix;
- config.NameFormat = item.NameFormat;
- config.NumberNum = item.NumberNum;
- config.NameStatus = item.NameStatus;
- config.ContinueNum = item.ContinueNum;
- config.CharZ1 = item.CharZ1;
- config.CharZ2 = item.CharZ2;
- }
- }
- }
- else
- {
- NamingMethod namingMethod = new NamingMethod();
- namingMethod.name = "default";
- namingMethod.NamePrefix = config.NamePrefix;
- namingMethod.NameFormat = config.NameFormat;
- namingMethod.NumberNum = config.NumberNum;
- namingMethod.NameStatus = config.NameStatus;
- namingMethod.ContinueNum = config.ContinueNum;
- namingMethod.CharZ1 = config.CharZ1;
- namingMethod.CharZ2 = config.CharZ2;
- config.LstNaming.Add(namingMethod);
- config.CurrentName = "default";
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (!FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- MessageBox.Show(PdnResources.GetString("Menu.mingconventionsavefailed.text"));
- comboBox_Name_Refresh();
- comboBox_Name_SelectedIndex();
- }
- }
- /// <summary>
- /// 条目选择
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void comboBox_Name_SelectedIndexChanged(object sender, EventArgs e)
- {
- config.CurrentName = this.comboBox_Name.Text.Trim();
- comboBox_Name_SelectedIndex();
- if (Inspect()) return;
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (!FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- MessageBox.Show(PdnResources.GetString("Menu.mingconventionsavefailed.text"));
- if (ImageIndexDialog.imageIndexDialog != null)
- ImageIndexDialog.imageIndexDialog.comboBox_Name_Refresh(config.CaptureSaveMode);
- }
- /// <summary>
- /// 删除
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void btn_Del_Click(object sender, EventArgs e)
- {
- DialogResult dr = MessageBox.Show(PdnResources.GetString("Menu.Areyousuretcteddata.text") + "?", PdnResources.GetString("Menu.ensure.text"), MessageBoxButtons.OKCancel, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
- if (dr == DialogResult.Cancel) return;
- if (this.comboBox_Name.Text.Trim() != "")
- {
- if (config.LstNaming.Count > 1)
- {
- foreach (NamingMethod item in config.LstNaming)
- {
- if (this.comboBox_Name.Text.Trim().Equals(item.name))
- {
- config.LstNaming.Remove(item);
- break;
- }
- }
- }
- else
- {
- MessageBox.Show("只有一条数据,不可删除!");
- return;
- }
- if (config.LstNaming.Count > 0)
- {
- config.CurrentName = config.LstNaming[0].name;
- comboBox_Name_Refresh();
- comboBox_Name_SelectedIndexChanged(null, null);
- }
- else
- {
- comboBox_Name_Refresh();
- config.CurrentName = "";
- }
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (!FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- MessageBox.Show(PdnResources.GetString("Menu.mingconventionsavefailed.text"));
- if (ImageIndexDialog.imageIndexDialog != null)
- ImageIndexDialog.imageIndexDialog.comboBox_Name_Refresh(config.CaptureSaveMode);
- }
- }
- /// <summary>
- /// 保存
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void btn_Save_Click(object sender, EventArgs e)
- {
- if (Inspect()) return;
- string[] arrs = System.Text.RegularExpressions.Regex.Split(textBox2.Text.Trim(), "%");
- string CurrentName = this.comboBox_Name.Text.Trim();
- NamingMethod namingMethod = new NamingMethod();
- namingMethod.name = CurrentName;
- namingMethod.NamePrefix = textBox1.Text;
- namingMethod.NameFormat = textBox2.Text;
- namingMethod.NumberNum = Convert.ToInt32(comboBox1.SelectedItem);
- namingMethod.NameStatus = radioButton1.Checked == true ? 1 : 2;
- namingMethod.ContinueNum = radioButton1.Checked ? Convert.ToInt32(textBox3.Text) : 1;
- namingMethod.CharZ1 = textBox7.Text;
- namingMethod.CharZ2 = textBox8.Text;
- bool save = false;
- if (config.LstNaming.Count > 0)
- {
- for (int i = 0; i < config.LstNaming.Count; i++)
- {
- if (CurrentName.Equals(config.LstNaming[i].name))
- {
- config.LstNaming[i] = namingMethod;
- save = true;
- break;
- }
- }
- if (save)
- {
- if (((IList)arrs).Contains("T1")) config.customTxt = "T1";
- else if (((IList)arrs).Contains("T2")) config.customTxt = "T2";
- else if (((IList)arrs).Contains("T3")) config.customTxt = "T3";
- else config.customTxt = "";
- config.NamePrefix = textBox1.Text;
- config.NameFormat = textBox2.Text;
- config.NumberNum = Convert.ToInt32(comboBox1.SelectedItem);
- config.NameStatus = radioButton1.Checked == true ? 1 : 2;
- config.ContinueNum = radioButton1.Checked ? Convert.ToInt32(textBox3.Text) : 1;
- config.CharZ1 = textBox7.Text;
- config.CharZ2 = textBox8.Text;
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (!FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- MessageBox.Show(PdnResources.GetString("Menu.mingconventionsavefailed.text"));
- Startup.instance.configModel = config;
- }
- if (ImageIndexDialog.imageIndexDialog != null)
- ImageIndexDialog.imageIndexDialog.comboBox_Name_Refresh(config.CaptureSaveMode);
- }
- else
- {
- this.btn_SaveAs.PerformClick();
- }
- }
- //是否符合window命名规则不
- public bool Islegal()
- {
- //Regex regExp = new Regex("[\\/:*?\"<>|]");
- //bool isLegal = regExp.IsMatch(textBox7.Text.Trim()) || regExp.IsMatch(textBox8.Text.Trim());
- //return isLegal;
- char[] charstr = { '\\', '/', ':', '*', '?', '"', '<', '>', '|'};
- char[] textstr = (textBox7.Text.Trim()+ textBox8.Text.Trim()).ToString().Trim().ToCharArray();
- int count = 0;/*统计非法字符的个数*/
- for (int i = 0; i < charstr.Length; i++)
- {
- for (int j = 0; j < textstr.Length; j++)
- {
- if (charstr[i] == textstr[j])
- {
- count++;
- }
- }
- }
- if (count > 0)
- return true;
- else
- return false;
- }
- #endregion
- #region [点距列表]
- public void PointList()
- {
- listView2.View = View.Details;
- listView2.Columns.Add("0", 0, HorizontalAlignment.Center);
- listView2.Columns.Add(PdnResources.GetString("Menu.LabelAction.MarkAction.Text"), 60, HorizontalAlignment.Center);
- listView2.Columns.Add(PdnResources.GetString("Menu.sizeed.text"), 120, HorizontalAlignment.Center);
- listView2.Columns.Add(PdnResources.GetString("Menu.Set.Generalsettings.Maximum(pixels).text"), 120, HorizontalAlignment.Center);
- listView2.Columns.Add(PdnResources.GetString("Menu.Set.Generalsettings.dotspacing(mm).text"), 120, HorizontalAlignment.Center);
- listView2.Columns.Add(PdnResources.GetString("Menu.Set.Generalsettings.Screenwidth(mm).text"), 120, HorizontalAlignment.Center);
- var screenList = mic_screen_rules_BLL.FindAll();
- var screenRulesId = config.DotPitchId;
- listView2.BeginUpdate();
- foreach (var s in screenList)
- {
- var lv = new ListViewItem();
- lv.Text = "1";
- lv.SubItems.Add(screenRulesId == s.id ? "√" : "×");
- lv.SubItems.Add(s.size);
- lv.SubItems.Add(s.max_resolution);
- lv.SubItems.Add(s.point_pitch);
- lv.SubItems.Add(s.screen_width);
- lv.SubItems.Add(s.id.ToString());
- listView2.Items.Add(lv);
- }
- if (listView2.Items.Count > 0)
- {
- listView2.Items[0].Selected = true;
- listView2.Select();
- }
- listView2.EndUpdate();
- }
- #endregion
- #region [语言内容]
- public void ChooseLanguage()
- {
- radioButton3.Checked = config.Language == 1 ? true : false;
- radioButton4.Checked = config.Language == 3 ? true : false;
- radioButton5.Checked = config.Language == 2 ? true : false;
- }
- #endregion
- #region [控件相关]
- public GroupBox groupBox1;
- public GroupBox groupBox2;
- private Button button1;
- private Button button2;
- private ListBox listBox1;
- private GroupBox groupBox3;
- private GroupBox groupBox4;
- private TextBox textBox_Email;
- private TextBox textBox_Phone;
- private TextBox textBox_Contact;
- private TextBox textBox_Address;
- private TextBox textBox_City;
- private TextBox textBox_Province;
- private TextBox textBox_CompanyName;
- private Label label1;
- private TextBox textBox_Interface;
- private TextBox textBox_Camera;
- private TextBox textBox_SN;
- private TextBox textBox_Model;
- private Label label2;
- private Label label3;
- private Label label4;
- private Label label5;
- private Label label6;
- private Label label7;
- private Label label8;
- private Label label9;
- private Label label10;
- private Label label11;
- private Label label12;
- public GroupBox groupBox5;
- private GroupBox groupBox6;
- private GroupBox groupBox7;
- private GroupBox groupBox8;
- private GroupBox groupBox9;
- private GroupBox groupBox11;
- private Label label13;
- private TextBox textBox1;
- private TextBox textBox2;
- private Label label14;
- private Label label15;
- private ComboBox comboBox1;
- private RadioButton radioButton1;
- private RadioButton radioButton2;
- private TextBox textBox3;
- private ListView listView1;
- private RadioButton radioButton3;
- private Label label16;
- private RadioButton radioButton5;
- private RadioButton radioButton4;
- private CheckBox checkBox6;
- private CheckBox checkBox5;
- private CheckBox checkBox4;
- private CheckBox checkBox3;
- private CheckBox checkBox2;
- private CheckBox checkBox1;
- private Label label17;
- private ListView listView2;
- private GroupBox groupBox12;
- private Button button5;
- private Button button4;
- private Button button3;
- private CheckBox checkBox7;
- private CheckBox checkBox9;
- private CheckBox checkBox8;
- private PictureBox pictureBox1;
- private Button button10;
- private Button button9;
- private Button button11;
- private PictureBox pictureBox2;
- private Button button12;
- private Button button13;
- private void InitializeLanguageText()
- {
-
- this.groupBox1.Text = PdnResources.GetString("Menu.Type.text");
- this.groupBox8.Text = PdnResources.GetString("Menu.information.text");
- this.radioButton5.Text = PdnResources.GetString("Menu.Set.Generalsettings.English.text");
- this.radioButton4.Text = PdnResources.GetString("Menu.Set.Generalsettings.German.text");
- this.label16.Text = PdnResources.GetString("Menu.Set.Generalsettings.Switchlanguage.text") + ":";
- this.radioButton3.Text = PdnResources.GetString("Menu.Set.Generalsettings.Chinese.text");
- this.groupBox7.Text = PdnResources.GetString("Menu.information.text");
- this.label17.Text = PdnResources.GetString("Menu.Set.Generalsettings.Note:Maklizing.text");
- this.checkBox6.Text = PdnResources.GetString("Menu.Set.Geneings.Note:Maklizing.text");
- this.checkBox5.Text = PdnResources.GetString("Menu.Set.Generalsettings.toolbarinit.text");
- this.checkBox4.Text = PdnResources.GetString("Menu.shortcutbarfunctioninit.text");
- this.checkBox3.Text = PdnResources.GetString("Menu.Set.Generalsettings.loginformationinit.text");
- this.checkBox2.Text = PdnResources.GetString("Menu.Set.Generalsettings.Measurementinfotioninit.text");
- this.checkBox1.Text = PdnResources.GetString("Menu.Set.Generalsettings.Annotatitioninit.text");
- this.groupBox10.Text = PdnResources.GetString("Menu.Set.Generalsettings.Thearchivefilesavesthepath.text");
- this.button8.Text = PdnResources.GetString("Menu.Set.Generalsettings.Selectfolder.text");
- this.button7.Text = PdnResources.GetString("Menu.Set.Generalsettings.Selectfolder.text");
- this.button6.Text = PdnResources.GetString("Menu.Set.Generalsettings.Selectfolder.text");
- this.label20.Text = PdnResources.GetString("Menu.DedicatedAnalysis.Text") + ":";
- this.label19.Text = PdnResources.GetString("Menu.GeneralAnalysis.Text") + ":";
- this.label18.Text = PdnResources.GetString("Menu.Normaloperation.text") + ":";
- this.groupBox6.Text = PdnResources.GetString("Menu.Set.Generalsettings.dotspacinglist.text");
- this.groupBox9.Text = PdnResources.GetString("Menu.Set.Generalsettings.Startimage.text");
- this.button10.Text = PdnResources.GetString("Menu.Edit.Delete.Text");
- this.checkBox7.Text = PdnResources.GetString("Menu.Set.Generalsettings.Startimage.text") + ":";
- this.groupBox2.Text = PdnResources.GetString("Menu.operation.text");
- this.button2.Text = PdnResources.GetString("ConfirmLanguageDialog.CancelTB.ActionText");
- this.button1.Text = PdnResources.GetString("Menu.application.text");
- this.groupBox12.Text = PdnResources.GetString("Menu.operation.text");
- this.button13.Text = PdnResources.GetString("Menu.application.text");
- this.button5.Text = PdnResources.GetString("Menu.Edit.Text");
- this.button4.Text = PdnResources.GetString("Menu.New.text");
- this.button3.Text = PdnResources.GetString("Menu.Edit.Delete.Text");
- this.groupBox3.Text = PdnResources.GetString("Menu.UserInfo.text");
- this.button12.Text = PdnResources.GetString("Menu.Edit.Delete.Text");
- this.label7.Text = PdnResources.GetString("Menu.Set.Generalsettings.mail.text") + ":";
- this.label6.Text = PdnResources.GetString("Menu.Set.Generalsettings.phone.text") + ":";
- this.label5.Text = PdnResources.GetString("Menu.Contactperson.text") + ":";
- this.label4.Text = PdnResources.GetString("Menu.Set.Generalsettings.address.text") + ":";
- this.label3.Text = PdnResources.GetString("Menu.Set.Generalsettings.city.text") + ":";
- this.label2.Text = PdnResources.GetString("Menu.Set.Generalsettings.province.text") + ":";
- this.label1.Text = PdnResources.GetString("Menu.Set.Generalsettings.unitname.text") + ":";
- this.groupBox5.Text = PdnResources.GetString("Menu.information.text");
- this.radioButton2.Text = PdnResources.GetString("Menu.reinformation.text");
- this.radioButton1.Text = PdnResources.GetString("Menu.Set.Generalsettings.continue.text");
- this.label15.Text = PdnResources.GetString("Menu.Set.Generalsettings.Numericaldigits.text") + ":";
- this.label14.Text = PdnResources.GetString("Menu.Set.Generalsettings.Nameformat.text") + ":";
- this.label13.Text = PdnResources.GetString("Menu.LabelAction.DrawTextString.Text") + ":";
- this.groupBox4.Text = PdnResources.GetString("Menu.Set.Generalsettings.Microsmation.text");
- this.label12.Text = PdnResources.GetString("Menu.interface.text") + ":";
- this.label11.Text = PdnResources.GetString("Menu.thecamera.text") + ":";
- this.label10.Text = PdnResources.GetString("Menu.Set.Generalsettings.SNcode.text") + ":";
- this.label9.Text = PdnResources.GetString("Menu.model.text") + ":";
- this.groupBox11.Text = PdnResources.GetString("Menu.other.text");
- this.checkBox9.Text = PdnResources.GetString("Menu.Set.Generalsettings.autoaddAxioVisionruler.text");
- this.checkBox8.Text = PdnResources.GetString("Menu.Set.Generalsettings.autoaddZENruler.text");
- this.groupBox13.Text = PdnResources.GetString("Menu.operation.text");
- this.button14.Text = PdnResources.GetString("Menu.application.text");
- this.button15.Text = PdnResources.GetString("Menu.Edit.Text");
- this.button16.Text = PdnResources.GetString("Menu.New.text");
- this.button17.Text = PdnResources.GetString("Menu.Edit.Delete.Text");
- this.groupBox14.Text = PdnResources.GetString("Menu.operation.text");
- this.button18.Text = PdnResources.GetString("Menu.application.text");
- this.button19.Text = PdnResources.GetString("ConfirmLanguageDialog.CancelTB.ActionText");
- this.groupBox15.Text = PdnResources.GetString("Menu.Directionsetting.text");
- this.radioButton14.Text = PdnResources.GetString("Menu.positive.text");
- this.radioButton15.Text = PdnResources.GetString("Menu.negation.text");
- this.radioButton12.Text = PdnResources.GetString("Menu.positive.text");
- this.radioButton13.Text = PdnResources.GetString("Menu.negation.text");
- this.radioButton10.Text = PdnResources.GetString("Menu.positive.text");
- this.radioButton11.Text = PdnResources.GetString("Menu.negation.text");
- this.radioButton8.Text = PdnResources.GetString("Menu.positive.text");
- this.radioButton9.Text = PdnResources.GetString("Menu.negation.text");
- this.radioButton7.Text = PdnResources.GetString("Menu.Set.Generalsettings.under.text");
- this.radioButton6.Text = PdnResources.GetString("Menu.Set.Generalsettings.up.text");
- this.label25.Text = PdnResources.GetString("Menu.Set.Generalsettings.Xaxismovementdirection.text") + ":" + PdnResources.GetString("Menu.Set.Generalsettings.left.text");
- this.label24.Text = PdnResources.GetString("Menu.Set.Generalsettings.right.text");
- this.label23.Text = PdnResources.GetString("Menu.Set.Generalsettings.right.text");
- this.label22.Text = PdnResources.GetString("Menu.Set.Generalsettings.Yaxismovementdirection.text") + ":" + PdnResources.GetString("Menu.Set.Generalsettings.left.text");
- this.label21.Text = PdnResources.GetString("Menu.Set.Generalsettings.Zaxismovementdirection.text") + ":";
- this.Text = PdnResources.GetString("Menu.Setting.GeneralSetting.Text");
- this.label26.Text = PdnResources.GetString("Menu.Linestyle.Text") + ":";
- this.label27.Text = PdnResources.GetString("Menu.Set.Rulersettings.Linecolor.text") + ":";
- this.label28.Text = PdnResources.GetString("Menu.Set.Rulersettings.Linewidth.text") + ":";
- this.groupBox16.Text = PdnResources.GetString("Menu.Auxiliarylinesettings.text");
- this.button20.Text = PdnResources.GetString("Menu.application.text");
- this.button21.Text = PdnResources.GetString("ConfirmLanguageDialog.CancelTB.ActionText");
- this.groupBox17.Text = PdnResources.GetString("Menu.operation.text");
- label29.Text = PdnResources.GetString("Menu.name.text");
- groupBox19.Text = PdnResources.GetString("Menu.CurrentUse.Text");
- btn_Del.Text = PdnResources.GetString("Menu.Edit.Delete.Text");
- btn_SaveAs.Text = PdnResources.GetString("Menu.File.SaveAs.Text");
- btn_Save.Text = PdnResources.GetString("CloseWorkspaceAction.SaveButton.ActionText");
- button23.Text = PdnResources.GetString("Menu.SelectFolder.text");
- label32.Text = PdnResources.GetString("Menu.DefaultPath.text") + ":";
- ckbSaveAndOpen.Text = PdnResources.GetString("Menu.SaveAndOpen.text");
- ckNotSave.Text = PdnResources.GetString("Menu.SoftwareSave.text");
- ckAutoSave.Text = PdnResources.GetString("Menu.AutoSave.text");
- ckbSave.Text = PdnResources.GetString("Menu.SaveDisk.text");
- }
- private void InitializeComponent()
- {
- this.groupBox1 = new System.Windows.Forms.GroupBox();
- this.listBox1 = new System.Windows.Forms.ListBox();
- this.groupBox8 = new System.Windows.Forms.GroupBox();
- this.radioButton5 = new System.Windows.Forms.RadioButton();
- this.radioButton4 = new System.Windows.Forms.RadioButton();
- this.label16 = new System.Windows.Forms.Label();
- this.radioButton3 = new System.Windows.Forms.RadioButton();
- this.groupBox7 = new System.Windows.Forms.GroupBox();
- this.label17 = new System.Windows.Forms.Label();
- this.checkBox6 = new System.Windows.Forms.CheckBox();
- this.checkBox5 = new System.Windows.Forms.CheckBox();
- this.checkBox4 = new System.Windows.Forms.CheckBox();
- this.checkBox3 = new System.Windows.Forms.CheckBox();
- this.checkBox2 = new System.Windows.Forms.CheckBox();
- this.checkBox1 = new System.Windows.Forms.CheckBox();
- this.groupBoxCaptureSave = new System.Windows.Forms.GroupBox();
- this.button23 = new System.Windows.Forms.Button();
- this.ckNotSave = new System.Windows.Forms.RadioButton();
- this.textBox9 = new System.Windows.Forms.TextBox();
- this.ckAutoSave = new System.Windows.Forms.RadioButton();
- this.label32 = new System.Windows.Forms.Label();
- this.ckbSave = new System.Windows.Forms.RadioButton();
- this.ckbSaveAndOpen = new System.Windows.Forms.CheckBox();
- this.groupBox10 = new System.Windows.Forms.GroupBox();
- this.button8 = new System.Windows.Forms.Button();
- this.textBox6 = new System.Windows.Forms.TextBox();
- this.button7 = new System.Windows.Forms.Button();
- this.textBox5 = new System.Windows.Forms.TextBox();
- this.button6 = new System.Windows.Forms.Button();
- this.textBox4 = new System.Windows.Forms.TextBox();
- this.label20 = new System.Windows.Forms.Label();
- this.label19 = new System.Windows.Forms.Label();
- this.label18 = new System.Windows.Forms.Label();
- this.groupBox6 = new System.Windows.Forms.GroupBox();
- this.listView2 = new System.Windows.Forms.ListView();
- this.groupBox9 = new System.Windows.Forms.GroupBox();
- this.button10 = new System.Windows.Forms.Button();
- this.button9 = new System.Windows.Forms.Button();
- this.pictureBox1 = new System.Windows.Forms.PictureBox();
- this.checkBox7 = new System.Windows.Forms.CheckBox();
- this.groupBox2 = new System.Windows.Forms.GroupBox();
- this.btn_SaveAs = new System.Windows.Forms.Button();
- this.btn_Save = new System.Windows.Forms.Button();
- this.button2 = new System.Windows.Forms.Button();
- this.button1 = new System.Windows.Forms.Button();
- this.groupBox12 = new System.Windows.Forms.GroupBox();
- this.button13 = new System.Windows.Forms.Button();
- this.button5 = new System.Windows.Forms.Button();
- this.button4 = new System.Windows.Forms.Button();
- this.button3 = new System.Windows.Forms.Button();
- this.groupBox3 = new System.Windows.Forms.GroupBox();
- this.pictureBox2 = new System.Windows.Forms.PictureBox();
- this.button12 = new System.Windows.Forms.Button();
- this.button11 = new System.Windows.Forms.Button();
- this.label8 = new System.Windows.Forms.Label();
- this.label7 = new System.Windows.Forms.Label();
- this.label6 = new System.Windows.Forms.Label();
- this.label5 = new System.Windows.Forms.Label();
- this.label4 = new System.Windows.Forms.Label();
- this.label3 = new System.Windows.Forms.Label();
- this.label2 = new System.Windows.Forms.Label();
- this.textBox_Email = new System.Windows.Forms.TextBox();
- this.textBox_Phone = new System.Windows.Forms.TextBox();
- this.textBox_Contact = new System.Windows.Forms.TextBox();
- this.textBox_Address = new System.Windows.Forms.TextBox();
- this.textBox_City = new System.Windows.Forms.TextBox();
- this.textBox_Province = new System.Windows.Forms.TextBox();
- this.textBox_CompanyName = new System.Windows.Forms.TextBox();
- this.label1 = new System.Windows.Forms.Label();
- this.groupBox5 = new System.Windows.Forms.GroupBox();
- this.textBox8 = new System.Windows.Forms.TextBox();
- this.textBox7 = new System.Windows.Forms.TextBox();
- this.label31 = new System.Windows.Forms.Label();
- this.label30 = new System.Windows.Forms.Label();
- this.radioButton2 = new System.Windows.Forms.RadioButton();
- this.textBox3 = new System.Windows.Forms.TextBox();
- this.radioButton1 = new System.Windows.Forms.RadioButton();
- this.comboBox1 = new System.Windows.Forms.ComboBox();
- this.label15 = new System.Windows.Forms.Label();
- this.textBox2 = new System.Windows.Forms.TextBox();
- this.label14 = new System.Windows.Forms.Label();
- this.textBox1 = new System.Windows.Forms.TextBox();
- this.label13 = new System.Windows.Forms.Label();
- this.listView1 = new System.Windows.Forms.ListView();
- this.groupBox4 = new System.Windows.Forms.GroupBox();
- this.label12 = new System.Windows.Forms.Label();
- this.label11 = new System.Windows.Forms.Label();
- this.label10 = new System.Windows.Forms.Label();
- this.label9 = new System.Windows.Forms.Label();
- this.textBox_Interface = new System.Windows.Forms.TextBox();
- this.textBox_Camera = new System.Windows.Forms.TextBox();
- this.textBox_SN = new System.Windows.Forms.TextBox();
- this.textBox_Model = new System.Windows.Forms.TextBox();
- this.groupBox11 = new System.Windows.Forms.GroupBox();
- this.checkBox9 = new System.Windows.Forms.CheckBox();
- this.checkBox8 = new System.Windows.Forms.CheckBox();
- this.listView3 = new System.Windows.Forms.ListView();
- this.label21 = new System.Windows.Forms.Label();
- this.label22 = new System.Windows.Forms.Label();
- this.label23 = new System.Windows.Forms.Label();
- this.label24 = new System.Windows.Forms.Label();
- this.label25 = new System.Windows.Forms.Label();
- this.panel1 = new System.Windows.Forms.Panel();
- this.radioButton7 = new System.Windows.Forms.RadioButton();
- this.radioButton6 = new System.Windows.Forms.RadioButton();
- this.panel2 = new System.Windows.Forms.Panel();
- this.radioButton8 = new System.Windows.Forms.RadioButton();
- this.radioButton9 = new System.Windows.Forms.RadioButton();
- this.panel3 = new System.Windows.Forms.Panel();
- this.radioButton10 = new System.Windows.Forms.RadioButton();
- this.radioButton11 = new System.Windows.Forms.RadioButton();
- this.panel4 = new System.Windows.Forms.Panel();
- this.radioButton12 = new System.Windows.Forms.RadioButton();
- this.radioButton13 = new System.Windows.Forms.RadioButton();
- this.panel5 = new System.Windows.Forms.Panel();
- this.radioButton14 = new System.Windows.Forms.RadioButton();
- this.radioButton15 = new System.Windows.Forms.RadioButton();
- this.groupBox15 = new System.Windows.Forms.GroupBox();
- this.groupBox16 = new System.Windows.Forms.GroupBox();
- this.panel6 = new System.Windows.Forms.Button();
- this.label28 = new System.Windows.Forms.Label();
- this.label27 = new System.Windows.Forms.Label();
- this.label26 = new System.Windows.Forms.Label();
- this.numericUpDown1 = new System.Windows.Forms.NumericUpDown();
- this.comboBox2 = new System.Windows.Forms.ComboBox();
- this.button17 = new System.Windows.Forms.Button();
- this.button16 = new System.Windows.Forms.Button();
- this.button15 = new System.Windows.Forms.Button();
- this.button14 = new System.Windows.Forms.Button();
- this.groupBox13 = new System.Windows.Forms.GroupBox();
- this.button19 = new System.Windows.Forms.Button();
- this.button18 = new System.Windows.Forms.Button();
- this.groupBox14 = new System.Windows.Forms.GroupBox();
- this.groupBox17 = new System.Windows.Forms.GroupBox();
- this.button20 = new System.Windows.Forms.Button();
- this.button21 = new System.Windows.Forms.Button();
- this.groupBox18 = new System.Windows.Forms.GroupBox();
- this.button22 = new System.Windows.Forms.Button();
- this.groupBox19 = new System.Windows.Forms.GroupBox();
- this.btn_Del = new System.Windows.Forms.Button();
- this.comboBox_Name = new System.Windows.Forms.ComboBox();
- this.label29 = new System.Windows.Forms.Label();
- this.groupBox20 = new System.Windows.Forms.GroupBox();
- this.checkBox10 = new System.Windows.Forms.CheckBox();
- this.comboBox3 = new System.Windows.Forms.ComboBox();
- this.numericUpDown3 = new System.Windows.Forms.NumericUpDown();
- this.numericUpDown2 = new System.Windows.Forms.NumericUpDown();
- this.label35 = new System.Windows.Forms.Label();
- this.label34 = new System.Windows.Forms.Label();
- this.label33 = new System.Windows.Forms.Label();
- this.groupBox1.SuspendLayout();
- this.groupBox8.SuspendLayout();
- this.groupBox7.SuspendLayout();
- this.groupBoxCaptureSave.SuspendLayout();
- this.groupBox10.SuspendLayout();
- this.groupBox6.SuspendLayout();
- this.groupBox9.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
- this.groupBox2.SuspendLayout();
- this.groupBox12.SuspendLayout();
- this.groupBox3.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
- this.groupBox5.SuspendLayout();
- this.groupBox4.SuspendLayout();
- this.groupBox11.SuspendLayout();
- this.panel1.SuspendLayout();
- this.panel2.SuspendLayout();
- this.panel3.SuspendLayout();
- this.panel4.SuspendLayout();
- this.panel5.SuspendLayout();
- this.groupBox15.SuspendLayout();
- this.groupBox16.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
- this.groupBox13.SuspendLayout();
- this.groupBox14.SuspendLayout();
- this.groupBox17.SuspendLayout();
- this.groupBox18.SuspendLayout();
- this.groupBox19.SuspendLayout();
- this.groupBox20.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).BeginInit();
- this.SuspendLayout();
- //
- // groupBox1
- //
- this.groupBox1.Controls.Add(this.listBox1);
- this.groupBox1.Location = new System.Drawing.Point(6, 13);
- this.groupBox1.Name = "groupBox1";
- this.groupBox1.Size = new System.Drawing.Size(105, 531);
- this.groupBox1.TabIndex = 1;
- this.groupBox1.TabStop = false;
- this.groupBox1.Text = "类型";
- //
- // listBox1
- //
- this.listBox1.Dock = System.Windows.Forms.DockStyle.Fill;
- this.listBox1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
- this.listBox1.FormattingEnabled = true;
- this.listBox1.ItemHeight = 30;
- this.listBox1.Location = new System.Drawing.Point(3, 17);
- this.listBox1.Name = "listBox1";
- this.listBox1.Size = new System.Drawing.Size(99, 511);
- this.listBox1.TabIndex = 0;
- this.listBox1.DrawItem += new System.Windows.Forms.DrawItemEventHandler(this.listBox1_DrawItem);
- this.listBox1.SelectedValueChanged += new System.EventHandler(this.listBox1_SelectedValueChanged);
- //
- // groupBox8
- //
- this.groupBox8.Controls.Add(this.radioButton5);
- this.groupBox8.Controls.Add(this.radioButton4);
- this.groupBox8.Controls.Add(this.label16);
- this.groupBox8.Controls.Add(this.radioButton3);
- this.groupBox8.Location = new System.Drawing.Point(117, 74);
- this.groupBox8.Name = "groupBox8";
- this.groupBox8.Size = new System.Drawing.Size(394, 470);
- this.groupBox8.TabIndex = 38;
- this.groupBox8.TabStop = false;
- this.groupBox8.Text = "信息";
- //
- // radioButton5
- //
- this.radioButton5.AutoSize = true;
- this.radioButton5.Location = new System.Drawing.Point(130, 66);
- this.radioButton5.Name = "radioButton5";
- this.radioButton5.Size = new System.Drawing.Size(47, 16);
- this.radioButton5.TabIndex = 8;
- this.radioButton5.TabStop = true;
- this.radioButton5.Text = "英文";
- this.radioButton5.UseVisualStyleBackColor = true;
- //
- // radioButton4
- //
- this.radioButton4.AutoSize = true;
- this.radioButton4.Location = new System.Drawing.Point(130, 98);
- this.radioButton4.Name = "radioButton4";
- this.radioButton4.Size = new System.Drawing.Size(47, 16);
- this.radioButton4.TabIndex = 7;
- this.radioButton4.TabStop = true;
- this.radioButton4.Text = "德文";
- this.radioButton4.UseVisualStyleBackColor = true;
- //
- // label16
- //
- this.label16.AutoSize = true;
- this.label16.Location = new System.Drawing.Point(17, 34);
- this.label16.Name = "label16";
- this.label16.Size = new System.Drawing.Size(65, 12);
- this.label16.TabIndex = 6;
- this.label16.Text = "切换语言:";
- //
- // radioButton3
- //
- this.radioButton3.AutoSize = true;
- this.radioButton3.Location = new System.Drawing.Point(130, 32);
- this.radioButton3.Name = "radioButton3";
- this.radioButton3.Size = new System.Drawing.Size(47, 16);
- this.radioButton3.TabIndex = 0;
- this.radioButton3.TabStop = true;
- this.radioButton3.Text = "中文";
- this.radioButton3.UseVisualStyleBackColor = true;
- //
- // groupBox7
- //
- this.groupBox7.Controls.Add(this.label17);
- this.groupBox7.Controls.Add(this.checkBox6);
- this.groupBox7.Controls.Add(this.checkBox5);
- this.groupBox7.Controls.Add(this.checkBox4);
- this.groupBox7.Controls.Add(this.checkBox3);
- this.groupBox7.Controls.Add(this.checkBox2);
- this.groupBox7.Controls.Add(this.checkBox1);
- this.groupBox7.Location = new System.Drawing.Point(117, 74);
- this.groupBox7.Name = "groupBox7";
- this.groupBox7.Size = new System.Drawing.Size(394, 470);
- this.groupBox7.TabIndex = 20;
- this.groupBox7.TabStop = false;
- this.groupBox7.Text = "信息";
- //
- // label17
- //
- this.label17.AutoSize = true;
- this.label17.ForeColor = System.Drawing.Color.Red;
- this.label17.Location = new System.Drawing.Point(15, 226);
- this.label17.Name = "label17";
- this.label17.Size = new System.Drawing.Size(269, 12);
- this.label17.TabIndex = 16;
- this.label17.Text = "注意:进行初始化前,请确保软件打开窗口均关闭";
- //
- // checkBox6
- //
- this.checkBox6.AutoSize = true;
- this.checkBox6.Location = new System.Drawing.Point(17, 194);
- this.checkBox6.Name = "checkBox6";
- this.checkBox6.Size = new System.Drawing.Size(120, 16);
- this.checkBox6.TabIndex = 16;
- this.checkBox6.Text = "快捷键功能初始化";
- this.checkBox6.UseVisualStyleBackColor = true;
- //
- // checkBox5
- //
- this.checkBox5.AutoSize = true;
- this.checkBox5.Location = new System.Drawing.Point(17, 162);
- this.checkBox5.Name = "checkBox5";
- this.checkBox5.Size = new System.Drawing.Size(96, 16);
- this.checkBox5.TabIndex = 16;
- this.checkBox5.Text = "工具栏初始化";
- this.checkBox5.UseVisualStyleBackColor = true;
- //
- // checkBox4
- //
- this.checkBox4.AutoSize = true;
- this.checkBox4.Location = new System.Drawing.Point(17, 130);
- this.checkBox4.Name = "checkBox4";
- this.checkBox4.Size = new System.Drawing.Size(120, 16);
- this.checkBox4.TabIndex = 16;
- this.checkBox4.Text = "快捷栏功能初始化";
- this.checkBox4.UseVisualStyleBackColor = true;
- //
- // checkBox3
- //
- this.checkBox3.AutoSize = true;
- this.checkBox3.Location = new System.Drawing.Point(17, 98);
- this.checkBox3.Name = "checkBox3";
- this.checkBox3.Size = new System.Drawing.Size(102, 16);
- this.checkBox3.TabIndex = 16;
- this.checkBox3.Text = "log信息初始化";
- this.checkBox3.UseVisualStyleBackColor = true;
- //
- // checkBox2
- //
- this.checkBox2.AutoSize = true;
- this.checkBox2.Location = new System.Drawing.Point(17, 66);
- this.checkBox2.Name = "checkBox2";
- this.checkBox2.Size = new System.Drawing.Size(132, 16);
- this.checkBox2.TabIndex = 16;
- this.checkBox2.Text = "测量信息配置初始化";
- this.checkBox2.UseVisualStyleBackColor = true;
- //
- // checkBox1
- //
- this.checkBox1.AutoSize = true;
- this.checkBox1.Location = new System.Drawing.Point(17, 34);
- this.checkBox1.Name = "checkBox1";
- this.checkBox1.Size = new System.Drawing.Size(132, 16);
- this.checkBox1.TabIndex = 16;
- this.checkBox1.Text = "标注信息配置初始化";
- this.checkBox1.UseVisualStyleBackColor = true;
- //
- // groupBoxCaptureSave
- //
- this.groupBoxCaptureSave.Controls.Add(this.button23);
- this.groupBoxCaptureSave.Controls.Add(this.ckNotSave);
- this.groupBoxCaptureSave.Controls.Add(this.textBox9);
- this.groupBoxCaptureSave.Controls.Add(this.ckAutoSave);
- this.groupBoxCaptureSave.Controls.Add(this.label32);
- this.groupBoxCaptureSave.Controls.Add(this.ckbSave);
- this.groupBoxCaptureSave.Controls.Add(this.ckbSaveAndOpen);
- this.groupBoxCaptureSave.Location = new System.Drawing.Point(117, 73);
- this.groupBoxCaptureSave.Name = "groupBoxCaptureSave";
- this.groupBoxCaptureSave.Size = new System.Drawing.Size(394, 470);
- this.groupBoxCaptureSave.TabIndex = 21;
- this.groupBoxCaptureSave.TabStop = false;
- this.groupBoxCaptureSave.Text = "拍照保存";
- //
- // button23
- //
- this.button23.Location = new System.Drawing.Point(286, 106);
- this.button23.Name = "button23";
- this.button23.Size = new System.Drawing.Size(75, 21);
- this.button23.TabIndex = 22;
- this.button23.Text = "选择文件夹";
- this.button23.UseVisualStyleBackColor = true;
- this.button23.Click += new System.EventHandler(this.button23_Click);
- //
- // ckNotSave
- //
- this.ckNotSave.AutoSize = true;
- this.ckNotSave.Location = new System.Drawing.Point(289, 37);
- this.ckNotSave.Name = "ckNotSave";
- this.ckNotSave.Size = new System.Drawing.Size(71, 16);
- this.ckNotSave.TabIndex = 4;
- this.ckNotSave.TabStop = true;
- this.ckNotSave.Text = "软件保存";
- this.ckNotSave.UseVisualStyleBackColor = true;
- //
- // textBox9
- //
- this.textBox9.Location = new System.Drawing.Point(94, 106);
- this.textBox9.Name = "textBox9";
- this.textBox9.ReadOnly = true;
- this.textBox9.Size = new System.Drawing.Size(180, 21);
- this.textBox9.TabIndex = 21;
- //
- // ckAutoSave
- //
- this.ckAutoSave.AutoSize = true;
- this.ckAutoSave.Location = new System.Drawing.Point(156, 36);
- this.ckAutoSave.Name = "ckAutoSave";
- this.ckAutoSave.Size = new System.Drawing.Size(71, 16);
- this.ckAutoSave.TabIndex = 3;
- this.ckAutoSave.TabStop = true;
- this.ckAutoSave.Text = "自动保存";
- this.ckAutoSave.UseVisualStyleBackColor = true;
- //
- // label32
- //
- this.label32.AutoSize = true;
- this.label32.Location = new System.Drawing.Point(13, 109);
- this.label32.Name = "label32";
- this.label32.Size = new System.Drawing.Size(65, 12);
- this.label32.TabIndex = 20;
- this.label32.Text = "默认路径:";
- //
- // ckbSave
- //
- this.ckbSave.AutoSize = true;
- this.ckbSave.Location = new System.Drawing.Point(15, 37);
- this.ckbSave.Name = "ckbSave";
- this.ckbSave.Size = new System.Drawing.Size(83, 16);
- this.ckbSave.TabIndex = 2;
- this.ckbSave.TabStop = true;
- this.ckbSave.Text = "保存到硬盘";
- this.ckbSave.UseVisualStyleBackColor = true;
- //
- // ckbSaveAndOpen
- //
- this.ckbSaveAndOpen.AutoSize = true;
- this.ckbSaveAndOpen.Location = new System.Drawing.Point(38, 65);
- this.ckbSaveAndOpen.Name = "ckbSaveAndOpen";
- this.ckbSaveAndOpen.Size = new System.Drawing.Size(144, 16);
- this.ckbSaveAndOpen.TabIndex = 0;
- this.ckbSaveAndOpen.Text = "保存后打开图片到软件";
- this.ckbSaveAndOpen.UseVisualStyleBackColor = true;
- //
- // groupBox10
- //
- this.groupBox10.Controls.Add(this.button8);
- this.groupBox10.Controls.Add(this.textBox6);
- this.groupBox10.Controls.Add(this.button7);
- this.groupBox10.Controls.Add(this.textBox5);
- this.groupBox10.Controls.Add(this.button6);
- this.groupBox10.Controls.Add(this.textBox4);
- this.groupBox10.Controls.Add(this.label20);
- this.groupBox10.Controls.Add(this.label19);
- this.groupBox10.Controls.Add(this.label18);
- this.groupBox10.Location = new System.Drawing.Point(117, 188);
- this.groupBox10.Name = "groupBox10";
- this.groupBox10.Size = new System.Drawing.Size(394, 171);
- this.groupBox10.TabIndex = 30;
- this.groupBox10.TabStop = false;
- this.groupBox10.Text = "存档文件保存路径";
- //
- // button8
- //
- this.button8.Location = new System.Drawing.Point(313, 106);
- this.button8.Name = "button8";
- this.button8.Size = new System.Drawing.Size(75, 21);
- this.button8.TabIndex = 16;
- this.button8.Text = "选择文件夹";
- this.button8.UseVisualStyleBackColor = true;
- this.button8.Click += new System.EventHandler(this.button8_Click);
- //
- // textBox6
- //
- this.textBox6.Location = new System.Drawing.Point(87, 106);
- this.textBox6.Name = "textBox6";
- this.textBox6.ReadOnly = true;
- this.textBox6.Size = new System.Drawing.Size(209, 21);
- this.textBox6.TabIndex = 15;
- //
- // button7
- //
- this.button7.Location = new System.Drawing.Point(313, 74);
- this.button7.Name = "button7";
- this.button7.Size = new System.Drawing.Size(75, 21);
- this.button7.TabIndex = 14;
- this.button7.Text = "选择文件夹";
- this.button7.UseVisualStyleBackColor = true;
- this.button7.Click += new System.EventHandler(this.button7_Click);
- //
- // textBox5
- //
- this.textBox5.Location = new System.Drawing.Point(87, 74);
- this.textBox5.Name = "textBox5";
- this.textBox5.ReadOnly = true;
- this.textBox5.Size = new System.Drawing.Size(209, 21);
- this.textBox5.TabIndex = 13;
- //
- // button6
- //
- this.button6.Location = new System.Drawing.Point(313, 41);
- this.button6.Name = "button6";
- this.button6.Size = new System.Drawing.Size(75, 21);
- this.button6.TabIndex = 12;
- this.button6.Text = "选择文件夹";
- this.button6.UseVisualStyleBackColor = true;
- this.button6.Click += new System.EventHandler(this.button6_Click);
- //
- // textBox4
- //
- this.textBox4.Location = new System.Drawing.Point(87, 41);
- this.textBox4.Name = "textBox4";
- this.textBox4.ReadOnly = true;
- this.textBox4.Size = new System.Drawing.Size(209, 21);
- this.textBox4.TabIndex = 11;
- //
- // label20
- //
- this.label20.AutoSize = true;
- this.label20.Location = new System.Drawing.Point(18, 109);
- this.label20.Name = "label20";
- this.label20.Size = new System.Drawing.Size(65, 12);
- this.label20.TabIndex = 7;
- this.label20.Text = "专用分析:";
- //
- // label19
- //
- this.label19.AutoSize = true;
- this.label19.Location = new System.Drawing.Point(17, 77);
- this.label19.Name = "label19";
- this.label19.Size = new System.Drawing.Size(65, 12);
- this.label19.TabIndex = 6;
- this.label19.Text = "通用分析:";
- //
- // label18
- //
- this.label18.AutoSize = true;
- this.label18.Location = new System.Drawing.Point(17, 45);
- this.label18.Name = "label18";
- this.label18.Size = new System.Drawing.Size(65, 12);
- this.label18.TabIndex = 5;
- this.label18.Text = "常规操作:";
- //
- // groupBox6
- //
- this.groupBox6.Controls.Add(this.listView2);
- this.groupBox6.Location = new System.Drawing.Point(117, 74);
- this.groupBox6.Name = "groupBox6";
- this.groupBox6.Size = new System.Drawing.Size(394, 471);
- this.groupBox6.TabIndex = 25;
- this.groupBox6.TabStop = false;
- this.groupBox6.Text = "点距列表";
- //
- // listView2
- //
- this.listView2.FullRowSelect = true;
- this.listView2.HideSelection = false;
- this.listView2.Location = new System.Drawing.Point(6, 20);
- this.listView2.MultiSelect = false;
- this.listView2.Name = "listView2";
- this.listView2.Size = new System.Drawing.Size(382, 441);
- this.listView2.TabIndex = 24;
- this.listView2.UseCompatibleStateImageBehavior = false;
- this.listView2.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.listView2_DoubleClick);
- //
- // groupBox9
- //
- this.groupBox9.Controls.Add(this.button10);
- this.groupBox9.Controls.Add(this.button9);
- this.groupBox9.Controls.Add(this.pictureBox1);
- this.groupBox9.Controls.Add(this.checkBox7);
- this.groupBox9.Location = new System.Drawing.Point(117, 74);
- this.groupBox9.Name = "groupBox9";
- this.groupBox9.Size = new System.Drawing.Size(394, 108);
- this.groupBox9.TabIndex = 45;
- this.groupBox9.TabStop = false;
- this.groupBox9.Text = "启动图像";
- //
- // button10
- //
- this.button10.Location = new System.Drawing.Point(232, 43);
- this.button10.Name = "button10";
- this.button10.Size = new System.Drawing.Size(75, 23);
- this.button10.TabIndex = 10;
- this.button10.Text = "删除";
- this.button10.UseVisualStyleBackColor = true;
- this.button10.Click += new System.EventHandler(this.button10_Click);
- //
- // button9
- //
- this.button9.Font = new System.Drawing.Font("宋体", 25F);
- this.button9.Location = new System.Drawing.Point(98, 14);
- this.button9.Name = "button9";
- this.button9.Size = new System.Drawing.Size(80, 80);
- this.button9.TabIndex = 9;
- this.button9.Text = "+";
- this.button9.UseVisualStyleBackColor = true;
- this.button9.Click += new System.EventHandler(this.button9_Click);
- //
- // pictureBox1
- //
- this.pictureBox1.Location = new System.Drawing.Point(98, 14);
- this.pictureBox1.Name = "pictureBox1";
- this.pictureBox1.Size = new System.Drawing.Size(80, 80);
- this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox1.TabIndex = 8;
- this.pictureBox1.TabStop = false;
- //
- // checkBox7
- //
- this.checkBox7.AutoSize = true;
- this.checkBox7.Location = new System.Drawing.Point(8, 46);
- this.checkBox7.Name = "checkBox7";
- this.checkBox7.Size = new System.Drawing.Size(84, 16);
- this.checkBox7.TabIndex = 6;
- this.checkBox7.Text = "启动图像:";
- this.checkBox7.UseVisualStyleBackColor = true;
- //
- // groupBox2
- //
- this.groupBox2.Controls.Add(this.btn_SaveAs);
- this.groupBox2.Controls.Add(this.btn_Save);
- this.groupBox2.Controls.Add(this.button2);
- this.groupBox2.Controls.Add(this.button1);
- this.groupBox2.Location = new System.Drawing.Point(117, 13);
- this.groupBox2.Name = "groupBox2";
- this.groupBox2.Size = new System.Drawing.Size(394, 58);
- this.groupBox2.TabIndex = 2;
- this.groupBox2.TabStop = false;
- this.groupBox2.Text = "操作";
- //
- // btn_SaveAs
- //
- this.btn_SaveAs.Location = new System.Drawing.Point(232, 20);
- this.btn_SaveAs.Name = "btn_SaveAs";
- this.btn_SaveAs.Size = new System.Drawing.Size(75, 23);
- this.btn_SaveAs.TabIndex = 3;
- this.btn_SaveAs.Text = "另存为";
- this.btn_SaveAs.UseVisualStyleBackColor = true;
- this.btn_SaveAs.Click += new System.EventHandler(this.btn_SaveAs_Click);
- //
- // btn_Save
- //
- this.btn_Save.Location = new System.Drawing.Point(152, 20);
- this.btn_Save.Name = "btn_Save";
- this.btn_Save.Size = new System.Drawing.Size(75, 23);
- this.btn_Save.TabIndex = 2;
- this.btn_Save.Text = "保存";
- this.btn_Save.UseVisualStyleBackColor = true;
- this.btn_Save.Click += new System.EventHandler(this.btn_Save_Click);
- //
- // button2
- //
- this.button2.Location = new System.Drawing.Point(313, 20);
- this.button2.Name = "button2";
- this.button2.Size = new System.Drawing.Size(75, 23);
- this.button2.TabIndex = 1;
- this.button2.Text = "取消";
- this.button2.UseVisualStyleBackColor = true;
- this.button2.Click += new System.EventHandler(this.button2_Click);
- //
- // button1
- //
- this.button1.Location = new System.Drawing.Point(233, 20);
- this.button1.Name = "button1";
- this.button1.Size = new System.Drawing.Size(75, 23);
- this.button1.TabIndex = 0;
- this.button1.Text = "确定";
- this.button1.UseVisualStyleBackColor = true;
- this.button1.Click += new System.EventHandler(this.button1_Click);
- //
- // groupBox12
- //
- this.groupBox12.Controls.Add(this.button13);
- this.groupBox12.Controls.Add(this.button5);
- this.groupBox12.Controls.Add(this.button4);
- this.groupBox12.Controls.Add(this.button3);
- this.groupBox12.Location = new System.Drawing.Point(117, 12);
- this.groupBox12.Name = "groupBox12";
- this.groupBox12.Size = new System.Drawing.Size(394, 59);
- this.groupBox12.TabIndex = 35;
- this.groupBox12.TabStop = false;
- this.groupBox12.Text = "操作";
- //
- // button13
- //
- this.button13.Location = new System.Drawing.Point(232, 21);
- this.button13.Name = "button13";
- this.button13.Size = new System.Drawing.Size(75, 23);
- this.button13.TabIndex = 13;
- this.button13.Text = "应用";
- this.button13.UseVisualStyleBackColor = true;
- this.button13.Click += new System.EventHandler(this.button13_Click);
- //
- // button5
- //
- this.button5.Location = new System.Drawing.Point(151, 21);
- this.button5.Name = "button5";
- this.button5.Size = new System.Drawing.Size(75, 23);
- this.button5.TabIndex = 10;
- this.button5.Text = "编辑";
- this.button5.UseVisualStyleBackColor = true;
- this.button5.Click += new System.EventHandler(this.button5_Click);
- //
- // button4
- //
- this.button4.Location = new System.Drawing.Point(70, 21);
- this.button4.Name = "button4";
- this.button4.Size = new System.Drawing.Size(75, 23);
- this.button4.TabIndex = 9;
- this.button4.Text = "新建";
- this.button4.UseVisualStyleBackColor = true;
- this.button4.Click += new System.EventHandler(this.button4_Click);
- //
- // button3
- //
- this.button3.Location = new System.Drawing.Point(311, 21);
- this.button3.Name = "button3";
- this.button3.Size = new System.Drawing.Size(75, 23);
- this.button3.TabIndex = 8;
- this.button3.Text = "删除";
- this.button3.UseVisualStyleBackColor = true;
- this.button3.Click += new System.EventHandler(this.button3_Click);
- //
- // groupBox3
- //
- this.groupBox3.Controls.Add(this.pictureBox2);
- this.groupBox3.Controls.Add(this.button12);
- this.groupBox3.Controls.Add(this.button11);
- this.groupBox3.Controls.Add(this.label8);
- this.groupBox3.Controls.Add(this.label7);
- this.groupBox3.Controls.Add(this.label6);
- this.groupBox3.Controls.Add(this.label5);
- this.groupBox3.Controls.Add(this.label4);
- this.groupBox3.Controls.Add(this.label3);
- this.groupBox3.Controls.Add(this.label2);
- this.groupBox3.Controls.Add(this.textBox_Email);
- this.groupBox3.Controls.Add(this.textBox_Phone);
- this.groupBox3.Controls.Add(this.textBox_Contact);
- this.groupBox3.Controls.Add(this.textBox_Address);
- this.groupBox3.Controls.Add(this.textBox_City);
- this.groupBox3.Controls.Add(this.textBox_Province);
- this.groupBox3.Controls.Add(this.textBox_CompanyName);
- this.groupBox3.Controls.Add(this.label1);
- this.groupBox3.Location = new System.Drawing.Point(117, 74);
- this.groupBox3.Name = "groupBox3";
- this.groupBox3.Size = new System.Drawing.Size(394, 276);
- this.groupBox3.TabIndex = 35;
- this.groupBox3.TabStop = false;
- this.groupBox3.Text = "用户信息";
- //
- // pictureBox2
- //
- this.pictureBox2.Location = new System.Drawing.Point(280, 157);
- this.pictureBox2.Name = "pictureBox2";
- this.pictureBox2.Size = new System.Drawing.Size(36, 36);
- this.pictureBox2.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
- this.pictureBox2.TabIndex = 17;
- this.pictureBox2.TabStop = false;
- //
- // button12
- //
- this.button12.Location = new System.Drawing.Point(322, 162);
- this.button12.Name = "button12";
- this.button12.Size = new System.Drawing.Size(45, 21);
- this.button12.TabIndex = 16;
- this.button12.Text = "删除";
- this.button12.UseVisualStyleBackColor = true;
- this.button12.Click += new System.EventHandler(this.button12_Click);
- //
- // button11
- //
- this.button11.Font = new System.Drawing.Font("宋体", 15F);
- this.button11.Location = new System.Drawing.Point(280, 158);
- this.button11.Name = "button11";
- this.button11.Size = new System.Drawing.Size(36, 36);
- this.button11.TabIndex = 15;
- this.button11.Text = "+";
- this.button11.UseVisualStyleBackColor = true;
- this.button11.Click += new System.EventHandler(this.button11_Click);
- //
- // label8
- //
- this.label8.AutoSize = true;
- this.label8.Location = new System.Drawing.Point(225, 162);
- this.label8.Name = "label8";
- this.label8.Size = new System.Drawing.Size(41, 12);
- this.label8.TabIndex = 14;
- this.label8.Text = "logo:";
- //
- // label7
- //
- this.label7.AutoSize = true;
- this.label7.Location = new System.Drawing.Point(30, 162);
- this.label7.Name = "label7";
- this.label7.Size = new System.Drawing.Size(41, 12);
- this.label7.TabIndex = 13;
- this.label7.Text = "邮件:";
- //
- // label6
- //
- this.label6.AutoSize = true;
- this.label6.Location = new System.Drawing.Point(225, 130);
- this.label6.Name = "label6";
- this.label6.Size = new System.Drawing.Size(41, 12);
- this.label6.TabIndex = 12;
- this.label6.Text = "电话:";
- //
- // label5
- //
- this.label5.AutoSize = true;
- this.label5.Location = new System.Drawing.Point(18, 130);
- this.label5.Name = "label5";
- this.label5.Size = new System.Drawing.Size(53, 12);
- this.label5.TabIndex = 11;
- this.label5.Text = "联系人:";
- //
- // label4
- //
- this.label4.AutoSize = true;
- this.label4.Location = new System.Drawing.Point(30, 98);
- this.label4.Name = "label4";
- this.label4.Size = new System.Drawing.Size(41, 12);
- this.label4.TabIndex = 10;
- this.label4.Text = "地址:";
- //
- // label3
- //
- this.label3.AutoSize = true;
- this.label3.Location = new System.Drawing.Point(225, 66);
- this.label3.Name = "label3";
- this.label3.Size = new System.Drawing.Size(41, 12);
- this.label3.TabIndex = 9;
- this.label3.Text = "城市:";
- //
- // label2
- //
- this.label2.AutoSize = true;
- this.label2.Cursor = System.Windows.Forms.Cursors.Default;
- this.label2.Location = new System.Drawing.Point(30, 66);
- this.label2.Name = "label2";
- this.label2.Size = new System.Drawing.Size(41, 12);
- this.label2.TabIndex = 8;
- this.label2.Text = "省份:";
- //
- // textBox_Email
- //
- this.textBox_Email.Location = new System.Drawing.Point(77, 158);
- this.textBox_Email.Name = "textBox_Email";
- this.textBox_Email.Size = new System.Drawing.Size(140, 21);
- this.textBox_Email.TabIndex = 7;
- //
- // textBox_Phone
- //
- this.textBox_Phone.Location = new System.Drawing.Point(277, 126);
- this.textBox_Phone.Name = "textBox_Phone";
- this.textBox_Phone.Size = new System.Drawing.Size(111, 21);
- this.textBox_Phone.TabIndex = 6;
- //
- // textBox_Contact
- //
- this.textBox_Contact.Location = new System.Drawing.Point(77, 126);
- this.textBox_Contact.Name = "textBox_Contact";
- this.textBox_Contact.Size = new System.Drawing.Size(140, 21);
- this.textBox_Contact.TabIndex = 5;
- //
- // textBox_Address
- //
- this.textBox_Address.Location = new System.Drawing.Point(77, 94);
- this.textBox_Address.Name = "textBox_Address";
- this.textBox_Address.Size = new System.Drawing.Size(311, 21);
- this.textBox_Address.TabIndex = 4;
- //
- // textBox_City
- //
- this.textBox_City.Location = new System.Drawing.Point(277, 62);
- this.textBox_City.Name = "textBox_City";
- this.textBox_City.Size = new System.Drawing.Size(111, 21);
- this.textBox_City.TabIndex = 3;
- //
- // textBox_Province
- //
- this.textBox_Province.Location = new System.Drawing.Point(77, 62);
- this.textBox_Province.Name = "textBox_Province";
- this.textBox_Province.Size = new System.Drawing.Size(140, 21);
- this.textBox_Province.TabIndex = 2;
- //
- // textBox_CompanyName
- //
- this.textBox_CompanyName.Location = new System.Drawing.Point(77, 30);
- this.textBox_CompanyName.Name = "textBox_CompanyName";
- this.textBox_CompanyName.Size = new System.Drawing.Size(311, 21);
- this.textBox_CompanyName.TabIndex = 1;
- //
- // label1
- //
- this.label1.AutoSize = true;
- this.label1.Location = new System.Drawing.Point(6, 34);
- this.label1.Name = "label1";
- this.label1.Size = new System.Drawing.Size(65, 12);
- this.label1.TabIndex = 0;
- this.label1.Text = "单位名称:";
- //
- // groupBox5
- //
- this.groupBox5.Controls.Add(this.textBox8);
- this.groupBox5.Controls.Add(this.textBox7);
- this.groupBox5.Controls.Add(this.label31);
- this.groupBox5.Controls.Add(this.label30);
- this.groupBox5.Controls.Add(this.radioButton2);
- this.groupBox5.Controls.Add(this.textBox3);
- this.groupBox5.Controls.Add(this.radioButton1);
- this.groupBox5.Controls.Add(this.comboBox1);
- this.groupBox5.Controls.Add(this.label15);
- this.groupBox5.Controls.Add(this.textBox2);
- this.groupBox5.Controls.Add(this.label14);
- this.groupBox5.Controls.Add(this.textBox1);
- this.groupBox5.Controls.Add(this.label13);
- this.groupBox5.Controls.Add(this.listView1);
- this.groupBox5.Location = new System.Drawing.Point(117, 136);
- this.groupBox5.Name = "groupBox5";
- this.groupBox5.Size = new System.Drawing.Size(394, 408);
- this.groupBox5.TabIndex = 1;
- this.groupBox5.TabStop = false;
- this.groupBox5.Text = "信息";
- //
- // textBox8
- //
- this.textBox8.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.textBox8.Location = new System.Drawing.Point(280, 65);
- this.textBox8.Name = "textBox8";
- this.textBox8.Size = new System.Drawing.Size(108, 21);
- this.textBox8.TabIndex = 16;
- //
- // textBox7
- //
- this.textBox7.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.textBox7.Location = new System.Drawing.Point(280, 40);
- this.textBox7.Name = "textBox7";
- this.textBox7.Size = new System.Drawing.Size(108, 21);
- this.textBox7.TabIndex = 15;
- //
- // label31
- //
- this.label31.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.label31.AutoSize = true;
- this.label31.Location = new System.Drawing.Point(241, 68);
- this.label31.Name = "label31";
- this.label31.Size = new System.Drawing.Size(29, 12);
- this.label31.TabIndex = 14;
- this.label31.Text = "Z2:";
- //
- // label30
- //
- this.label30.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.label30.AutoSize = true;
- this.label30.Location = new System.Drawing.Point(241, 45);
- this.label30.Name = "label30";
- this.label30.Size = new System.Drawing.Size(29, 12);
- this.label30.TabIndex = 13;
- this.label30.Text = "Z1:";
- //
- // radioButton2
- //
- this.radioButton2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.radioButton2.AutoSize = true;
- this.radioButton2.Location = new System.Drawing.Point(9, 89);
- this.radioButton2.Name = "radioButton2";
- this.radioButton2.Size = new System.Drawing.Size(47, 16);
- this.radioButton2.TabIndex = 11;
- this.radioButton2.TabStop = true;
- this.radioButton2.Text = "重置";
- this.radioButton2.UseVisualStyleBackColor = true;
- this.radioButton2.CheckedChanged += new System.EventHandler(this.radioButton2_CheckedChanged);
- //
- // textBox3
- //
- this.textBox3.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.textBox3.Location = new System.Drawing.Point(77, 65);
- this.textBox3.Name = "textBox3";
- this.textBox3.Size = new System.Drawing.Size(108, 21);
- this.textBox3.TabIndex = 10;
- //
- // radioButton1
- //
- this.radioButton1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.radioButton1.AutoSize = true;
- this.radioButton1.Location = new System.Drawing.Point(9, 67);
- this.radioButton1.Name = "radioButton1";
- this.radioButton1.Size = new System.Drawing.Size(47, 16);
- this.radioButton1.TabIndex = 9;
- this.radioButton1.TabStop = true;
- this.radioButton1.Text = "延续";
- this.radioButton1.UseVisualStyleBackColor = true;
- this.radioButton1.CheckedChanged += new System.EventHandler(this.radioButton1_CheckedChanged);
- //
- // comboBox1
- //
- this.comboBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBox1.FormattingEnabled = true;
- this.comboBox1.Location = new System.Drawing.Point(77, 41);
- this.comboBox1.Name = "comboBox1";
- this.comboBox1.Size = new System.Drawing.Size(108, 20);
- this.comboBox1.TabIndex = 8;
- //
- // label15
- //
- this.label15.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.label15.AutoSize = true;
- this.label15.Location = new System.Drawing.Point(9, 45);
- this.label15.Name = "label15";
- this.label15.Size = new System.Drawing.Size(65, 12);
- this.label15.TabIndex = 5;
- this.label15.Text = "数值位数:";
- //
- // textBox2
- //
- this.textBox2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.textBox2.Location = new System.Drawing.Point(280, 15);
- this.textBox2.Name = "textBox2";
- this.textBox2.Size = new System.Drawing.Size(108, 21);
- this.textBox2.TabIndex = 4;
- //
- // label14
- //
- this.label14.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.label14.AutoSize = true;
- this.label14.Location = new System.Drawing.Point(205, 20);
- this.label14.Name = "label14";
- this.label14.Size = new System.Drawing.Size(65, 12);
- this.label14.TabIndex = 3;
- this.label14.Text = "名称格式:";
- //
- // textBox1
- //
- this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.textBox1.Location = new System.Drawing.Point(77, 16);
- this.textBox1.Name = "textBox1";
- this.textBox1.Size = new System.Drawing.Size(108, 21);
- this.textBox1.TabIndex = 2;
- //
- // label13
- //
- this.label13.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.label13.AutoSize = true;
- this.label13.Location = new System.Drawing.Point(33, 21);
- this.label13.Name = "label13";
- this.label13.Size = new System.Drawing.Size(41, 12);
- this.label13.TabIndex = 1;
- this.label13.Text = "文本:";
- //
- // listView1
- //
- this.listView1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.listView1.GridLines = true;
- this.listView1.HideSelection = false;
- this.listView1.Location = new System.Drawing.Point(8, 124);
- this.listView1.Name = "listView1";
- this.listView1.Size = new System.Drawing.Size(380, 275);
- this.listView1.TabIndex = 12;
- this.listView1.UseCompatibleStateImageBehavior = false;
- this.listView1.View = System.Windows.Forms.View.Details;
- //
- // groupBox4
- //
- this.groupBox4.Controls.Add(this.label12);
- this.groupBox4.Controls.Add(this.label11);
- this.groupBox4.Controls.Add(this.label10);
- this.groupBox4.Controls.Add(this.label9);
- this.groupBox4.Controls.Add(this.textBox_Interface);
- this.groupBox4.Controls.Add(this.textBox_Camera);
- this.groupBox4.Controls.Add(this.textBox_SN);
- this.groupBox4.Controls.Add(this.textBox_Model);
- this.groupBox4.Location = new System.Drawing.Point(117, 359);
- this.groupBox4.Name = "groupBox4";
- this.groupBox4.Size = new System.Drawing.Size(394, 185);
- this.groupBox4.TabIndex = 30;
- this.groupBox4.TabStop = false;
- this.groupBox4.Text = "显微镜信息";
- //
- // label12
- //
- this.label12.AutoSize = true;
- this.label12.Location = new System.Drawing.Point(30, 130);
- this.label12.Name = "label12";
- this.label12.Size = new System.Drawing.Size(41, 12);
- this.label12.TabIndex = 7;
- this.label12.Text = "接口:";
- //
- // label11
- //
- this.label11.AutoSize = true;
- this.label11.Location = new System.Drawing.Point(18, 98);
- this.label11.Name = "label11";
- this.label11.Size = new System.Drawing.Size(53, 12);
- this.label11.TabIndex = 6;
- this.label11.Text = "摄像头:";
- //
- // label10
- //
- this.label10.AutoSize = true;
- this.label10.Location = new System.Drawing.Point(30, 66);
- this.label10.Name = "label10";
- this.label10.Size = new System.Drawing.Size(41, 12);
- this.label10.TabIndex = 5;
- this.label10.Text = "SN码:";
- //
- // label9
- //
- this.label9.AutoSize = true;
- this.label9.Location = new System.Drawing.Point(30, 34);
- this.label9.Name = "label9";
- this.label9.Size = new System.Drawing.Size(41, 12);
- this.label9.TabIndex = 4;
- this.label9.Text = "型号:";
- //
- // textBox_Interface
- //
- this.textBox_Interface.Location = new System.Drawing.Point(77, 126);
- this.textBox_Interface.Name = "textBox_Interface";
- this.textBox_Interface.Size = new System.Drawing.Size(311, 21);
- this.textBox_Interface.TabIndex = 3;
- //
- // textBox_Camera
- //
- this.textBox_Camera.Location = new System.Drawing.Point(77, 94);
- this.textBox_Camera.Name = "textBox_Camera";
- this.textBox_Camera.Size = new System.Drawing.Size(311, 21);
- this.textBox_Camera.TabIndex = 2;
- //
- // textBox_SN
- //
- this.textBox_SN.Location = new System.Drawing.Point(77, 62);
- this.textBox_SN.Name = "textBox_SN";
- this.textBox_SN.Size = new System.Drawing.Size(311, 21);
- this.textBox_SN.TabIndex = 1;
- //
- // textBox_Model
- //
- this.textBox_Model.Location = new System.Drawing.Point(77, 30);
- this.textBox_Model.Name = "textBox_Model";
- this.textBox_Model.Size = new System.Drawing.Size(311, 21);
- this.textBox_Model.TabIndex = 0;
- //
- // groupBox11
- //
- this.groupBox11.Controls.Add(this.checkBox9);
- this.groupBox11.Controls.Add(this.checkBox8);
- this.groupBox11.Location = new System.Drawing.Point(117, 367);
- this.groupBox11.Name = "groupBox11";
- this.groupBox11.Size = new System.Drawing.Size(394, 177);
- this.groupBox11.TabIndex = 40;
- this.groupBox11.TabStop = false;
- this.groupBox11.Text = "其他";
- //
- // checkBox9
- //
- this.checkBox9.AutoSize = true;
- this.checkBox9.Location = new System.Drawing.Point(8, 66);
- this.checkBox9.Name = "checkBox9";
- this.checkBox9.Size = new System.Drawing.Size(156, 16);
- this.checkBox9.TabIndex = 8;
- this.checkBox9.Text = "自动添加AxioVision标尺";
- this.checkBox9.UseVisualStyleBackColor = true;
- //
- // checkBox8
- //
- this.checkBox8.AutoSize = true;
- this.checkBox8.Location = new System.Drawing.Point(8, 34);
- this.checkBox8.Name = "checkBox8";
- this.checkBox8.Size = new System.Drawing.Size(114, 16);
- this.checkBox8.TabIndex = 7;
- this.checkBox8.Text = "自动添加ZEN标尺";
- this.checkBox8.UseVisualStyleBackColor = true;
- //
- // listView3
- //
- this.listView3.FullRowSelect = true;
- this.listView3.GridLines = true;
- this.listView3.HideSelection = false;
- this.listView3.Location = new System.Drawing.Point(117, 73);
- this.listView3.MultiSelect = false;
- this.listView3.Name = "listView3";
- this.listView3.Size = new System.Drawing.Size(394, 471);
- this.listView3.TabIndex = 46;
- this.listView3.UseCompatibleStateImageBehavior = false;
- this.listView3.Click += new System.EventHandler(this.listView1_SelectedIndexChanged);
- //
- // label21
- //
- this.label21.AutoSize = true;
- this.label21.Location = new System.Drawing.Point(12, 44);
- this.label21.Name = "label21";
- this.label21.Size = new System.Drawing.Size(83, 12);
- this.label21.TabIndex = 10;
- this.label21.Text = "Z轴运动方向:";
- //
- // label22
- //
- this.label22.AutoSize = true;
- this.label22.Location = new System.Drawing.Point(12, 117);
- this.label22.Name = "label22";
- this.label22.Size = new System.Drawing.Size(95, 12);
- this.label22.TabIndex = 11;
- this.label22.Text = "Y轴运动方向:左";
- //
- // label23
- //
- this.label23.AutoSize = true;
- this.label23.Location = new System.Drawing.Point(239, 117);
- this.label23.Name = "label23";
- this.label23.Size = new System.Drawing.Size(17, 12);
- this.label23.TabIndex = 12;
- this.label23.Text = "右";
- //
- // label24
- //
- this.label24.AutoSize = true;
- this.label24.Location = new System.Drawing.Point(239, 82);
- this.label24.Name = "label24";
- this.label24.Size = new System.Drawing.Size(17, 12);
- this.label24.TabIndex = 13;
- this.label24.Text = "右";
- //
- // label25
- //
- this.label25.AutoSize = true;
- this.label25.Location = new System.Drawing.Point(12, 82);
- this.label25.Name = "label25";
- this.label25.Size = new System.Drawing.Size(95, 12);
- this.label25.TabIndex = 14;
- this.label25.Text = "X轴运动方向:左";
- //
- // panel1
- //
- this.panel1.Controls.Add(this.radioButton7);
- this.panel1.Controls.Add(this.radioButton6);
- this.panel1.Location = new System.Drawing.Point(101, 39);
- this.panel1.Name = "panel1";
- this.panel1.Size = new System.Drawing.Size(84, 24);
- this.panel1.TabIndex = 16;
- //
- // radioButton7
- //
- this.radioButton7.AutoSize = true;
- this.radioButton7.Location = new System.Drawing.Point(43, 3);
- this.radioButton7.Name = "radioButton7";
- this.radioButton7.Size = new System.Drawing.Size(35, 16);
- this.radioButton7.TabIndex = 1;
- this.radioButton7.TabStop = true;
- this.radioButton7.Text = "下";
- this.radioButton7.UseVisualStyleBackColor = true;
- //
- // radioButton6
- //
- this.radioButton6.AutoSize = true;
- this.radioButton6.Location = new System.Drawing.Point(3, 3);
- this.radioButton6.Name = "radioButton6";
- this.radioButton6.Size = new System.Drawing.Size(35, 16);
- this.radioButton6.TabIndex = 0;
- this.radioButton6.TabStop = true;
- this.radioButton6.Text = "上";
- this.radioButton6.UseVisualStyleBackColor = true;
- //
- // panel2
- //
- this.panel2.Controls.Add(this.radioButton8);
- this.panel2.Controls.Add(this.radioButton9);
- this.panel2.Location = new System.Drawing.Point(144, 75);
- this.panel2.Name = "panel2";
- this.panel2.Size = new System.Drawing.Size(84, 24);
- this.panel2.TabIndex = 17;
- //
- // radioButton8
- //
- this.radioButton8.AutoSize = true;
- this.radioButton8.Location = new System.Drawing.Point(5, 5);
- this.radioButton8.Name = "radioButton8";
- this.radioButton8.Size = new System.Drawing.Size(35, 16);
- this.radioButton8.TabIndex = 3;
- this.radioButton8.TabStop = true;
- this.radioButton8.Text = "正";
- this.radioButton8.UseVisualStyleBackColor = true;
- //
- // radioButton9
- //
- this.radioButton9.AutoSize = true;
- this.radioButton9.Location = new System.Drawing.Point(44, 5);
- this.radioButton9.Name = "radioButton9";
- this.radioButton9.Size = new System.Drawing.Size(35, 16);
- this.radioButton9.TabIndex = 2;
- this.radioButton9.TabStop = true;
- this.radioButton9.Text = "负";
- this.radioButton9.UseVisualStyleBackColor = true;
- //
- // panel3
- //
- this.panel3.Controls.Add(this.radioButton10);
- this.panel3.Controls.Add(this.radioButton11);
- this.panel3.Location = new System.Drawing.Point(273, 76);
- this.panel3.Name = "panel3";
- this.panel3.Size = new System.Drawing.Size(82, 23);
- this.panel3.TabIndex = 18;
- //
- // radioButton10
- //
- this.radioButton10.AutoSize = true;
- this.radioButton10.Location = new System.Drawing.Point(5, 4);
- this.radioButton10.Name = "radioButton10";
- this.radioButton10.Size = new System.Drawing.Size(35, 16);
- this.radioButton10.TabIndex = 5;
- this.radioButton10.TabStop = true;
- this.radioButton10.Text = "正";
- this.radioButton10.UseVisualStyleBackColor = true;
- //
- // radioButton11
- //
- this.radioButton11.AutoSize = true;
- this.radioButton11.Location = new System.Drawing.Point(44, 4);
- this.radioButton11.Name = "radioButton11";
- this.radioButton11.Size = new System.Drawing.Size(35, 16);
- this.radioButton11.TabIndex = 4;
- this.radioButton11.TabStop = true;
- this.radioButton11.Text = "负";
- this.radioButton11.UseVisualStyleBackColor = true;
- //
- // panel4
- //
- this.panel4.Controls.Add(this.radioButton12);
- this.panel4.Controls.Add(this.radioButton13);
- this.panel4.Location = new System.Drawing.Point(144, 110);
- this.panel4.Name = "panel4";
- this.panel4.Size = new System.Drawing.Size(84, 24);
- this.panel4.TabIndex = 19;
- //
- // radioButton12
- //
- this.radioButton12.AutoSize = true;
- this.radioButton12.Location = new System.Drawing.Point(5, 5);
- this.radioButton12.Name = "radioButton12";
- this.radioButton12.Size = new System.Drawing.Size(35, 16);
- this.radioButton12.TabIndex = 7;
- this.radioButton12.TabStop = true;
- this.radioButton12.Text = "正";
- this.radioButton12.UseVisualStyleBackColor = true;
- //
- // radioButton13
- //
- this.radioButton13.AutoSize = true;
- this.radioButton13.Location = new System.Drawing.Point(47, 5);
- this.radioButton13.Name = "radioButton13";
- this.radioButton13.Size = new System.Drawing.Size(35, 16);
- this.radioButton13.TabIndex = 6;
- this.radioButton13.TabStop = true;
- this.radioButton13.Text = "负";
- this.radioButton13.UseVisualStyleBackColor = true;
- //
- // panel5
- //
- this.panel5.Controls.Add(this.radioButton14);
- this.panel5.Controls.Add(this.radioButton15);
- this.panel5.Location = new System.Drawing.Point(273, 112);
- this.panel5.Name = "panel5";
- this.panel5.Size = new System.Drawing.Size(82, 22);
- this.panel5.TabIndex = 20;
- //
- // radioButton14
- //
- this.radioButton14.AutoSize = true;
- this.radioButton14.Location = new System.Drawing.Point(5, 3);
- this.radioButton14.Name = "radioButton14";
- this.radioButton14.Size = new System.Drawing.Size(35, 16);
- this.radioButton14.TabIndex = 9;
- this.radioButton14.TabStop = true;
- this.radioButton14.Text = "正";
- this.radioButton14.UseVisualStyleBackColor = true;
- //
- // radioButton15
- //
- this.radioButton15.AutoSize = true;
- this.radioButton15.Location = new System.Drawing.Point(44, 3);
- this.radioButton15.Name = "radioButton15";
- this.radioButton15.Size = new System.Drawing.Size(35, 16);
- this.radioButton15.TabIndex = 8;
- this.radioButton15.TabStop = true;
- this.radioButton15.Text = "负";
- this.radioButton15.UseVisualStyleBackColor = true;
- //
- // groupBox15
- //
- this.groupBox15.Controls.Add(this.panel5);
- this.groupBox15.Controls.Add(this.panel4);
- this.groupBox15.Controls.Add(this.panel3);
- this.groupBox15.Controls.Add(this.panel2);
- this.groupBox15.Controls.Add(this.panel1);
- this.groupBox15.Controls.Add(this.label25);
- this.groupBox15.Controls.Add(this.label24);
- this.groupBox15.Controls.Add(this.label23);
- this.groupBox15.Controls.Add(this.label22);
- this.groupBox15.Controls.Add(this.label21);
- this.groupBox15.Location = new System.Drawing.Point(117, 73);
- this.groupBox15.Name = "groupBox15";
- this.groupBox15.Size = new System.Drawing.Size(394, 471);
- this.groupBox15.TabIndex = 47;
- this.groupBox15.TabStop = false;
- this.groupBox15.Text = "方向设置";
- //
- // groupBox16
- //
- this.groupBox16.Controls.Add(this.panel6);
- this.groupBox16.Controls.Add(this.label28);
- this.groupBox16.Controls.Add(this.label27);
- this.groupBox16.Controls.Add(this.label26);
- this.groupBox16.Controls.Add(this.numericUpDown1);
- this.groupBox16.Controls.Add(this.comboBox2);
- this.groupBox16.Location = new System.Drawing.Point(117, 73);
- this.groupBox16.Name = "groupBox16";
- this.groupBox16.Size = new System.Drawing.Size(394, 471);
- this.groupBox16.TabIndex = 48;
- this.groupBox16.TabStop = false;
- this.groupBox16.Text = "辅助线设置";
- //
- // panel6
- //
- this.panel6.BackColor = System.Drawing.Color.Red;
- this.panel6.Cursor = System.Windows.Forms.Cursors.AppStarting;
- this.panel6.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
- this.panel6.Location = new System.Drawing.Point(135, 105);
- this.panel6.Name = "panel6";
- this.panel6.Size = new System.Drawing.Size(152, 20);
- this.panel6.TabIndex = 18;
- this.panel6.UseVisualStyleBackColor = false;
- this.panel6.Click += new System.EventHandler(this.panel6_Click);
- //
- // label28
- //
- this.label28.AutoSize = true;
- this.label28.Location = new System.Drawing.Point(45, 162);
- this.label28.Name = "label28";
- this.label28.Size = new System.Drawing.Size(59, 12);
- this.label28.TabIndex = 17;
- this.label28.Text = "线条宽度:";
- //
- // label27
- //
- this.label27.AutoSize = true;
- this.label27.Location = new System.Drawing.Point(45, 108);
- this.label27.Name = "label27";
- this.label27.Size = new System.Drawing.Size(59, 12);
- this.label27.TabIndex = 16;
- this.label27.Text = "线条颜色:";
- //
- // label26
- //
- this.label26.AutoSize = true;
- this.label26.Location = new System.Drawing.Point(45, 54);
- this.label26.Name = "label26";
- this.label26.Size = new System.Drawing.Size(59, 12);
- this.label26.TabIndex = 15;
- this.label26.Text = "线条样式:";
- //
- // numericUpDown1
- //
- this.numericUpDown1.Location = new System.Drawing.Point(135, 158);
- this.numericUpDown1.Name = "numericUpDown1";
- this.numericUpDown1.Size = new System.Drawing.Size(152, 21);
- this.numericUpDown1.TabIndex = 14;
- this.numericUpDown1.Value = new decimal(new int[] {
- 1,
- 0,
- 0,
- 0});
- //
- // comboBox2
- //
- this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBox2.FormattingEnabled = true;
- this.comboBox2.Location = new System.Drawing.Point(135, 51);
- this.comboBox2.Name = "comboBox2";
- this.comboBox2.Size = new System.Drawing.Size(152, 20);
- this.comboBox2.TabIndex = 12;
- //
- // button17
- //
- this.button17.Location = new System.Drawing.Point(311, 21);
- this.button17.Name = "button17";
- this.button17.Size = new System.Drawing.Size(75, 23);
- this.button17.TabIndex = 8;
- this.button17.Text = "删除";
- this.button17.UseVisualStyleBackColor = true;
- this.button17.Click += new System.EventHandler(this.button17_Click);
- //
- // button16
- //
- this.button16.Location = new System.Drawing.Point(70, 21);
- this.button16.Name = "button16";
- this.button16.Size = new System.Drawing.Size(75, 23);
- this.button16.TabIndex = 9;
- this.button16.Text = "新建";
- this.button16.UseVisualStyleBackColor = true;
- this.button16.Click += new System.EventHandler(this.button16_Click);
- //
- // button15
- //
- this.button15.Location = new System.Drawing.Point(151, 21);
- this.button15.Name = "button15";
- this.button15.Size = new System.Drawing.Size(75, 23);
- this.button15.TabIndex = 10;
- this.button15.Text = "编辑";
- this.button15.UseVisualStyleBackColor = true;
- this.button15.Click += new System.EventHandler(this.button15_Click);
- //
- // button14
- //
- this.button14.Location = new System.Drawing.Point(232, 21);
- this.button14.Name = "button14";
- this.button14.Size = new System.Drawing.Size(75, 23);
- this.button14.TabIndex = 13;
- this.button14.Text = "应用";
- this.button14.UseVisualStyleBackColor = true;
- this.button14.Click += new System.EventHandler(this.button14_Click);
- //
- // groupBox13
- //
- this.groupBox13.Controls.Add(this.button14);
- this.groupBox13.Controls.Add(this.button15);
- this.groupBox13.Controls.Add(this.button16);
- this.groupBox13.Controls.Add(this.button17);
- this.groupBox13.Location = new System.Drawing.Point(117, 13);
- this.groupBox13.Name = "groupBox13";
- this.groupBox13.Size = new System.Drawing.Size(394, 59);
- this.groupBox13.TabIndex = 36;
- this.groupBox13.TabStop = false;
- this.groupBox13.Text = "操作";
- //
- // button19
- //
- this.button19.Location = new System.Drawing.Point(311, 21);
- this.button19.Name = "button19";
- this.button19.Size = new System.Drawing.Size(75, 23);
- this.button19.TabIndex = 10;
- this.button19.Text = "取消";
- this.button19.UseVisualStyleBackColor = true;
- this.button19.Click += new System.EventHandler(this.button19_Click);
- //
- // button18
- //
- this.button18.Location = new System.Drawing.Point(232, 21);
- this.button18.Name = "button18";
- this.button18.Size = new System.Drawing.Size(75, 23);
- this.button18.TabIndex = 13;
- this.button18.Text = "确定";
- this.button18.UseVisualStyleBackColor = true;
- this.button18.Click += new System.EventHandler(this.button18_Click);
- //
- // groupBox14
- //
- this.groupBox14.Controls.Add(this.button18);
- this.groupBox14.Controls.Add(this.button19);
- this.groupBox14.Location = new System.Drawing.Point(117, 13);
- this.groupBox14.Name = "groupBox14";
- this.groupBox14.Size = new System.Drawing.Size(394, 59);
- this.groupBox14.TabIndex = 37;
- this.groupBox14.TabStop = false;
- this.groupBox14.Text = "操作";
- //
- // groupBox17
- //
- this.groupBox17.Controls.Add(this.button20);
- this.groupBox17.Controls.Add(this.button21);
- this.groupBox17.Location = new System.Drawing.Point(117, 13);
- this.groupBox17.Name = "groupBox17";
- this.groupBox17.Size = new System.Drawing.Size(394, 59);
- this.groupBox17.TabIndex = 38;
- this.groupBox17.TabStop = false;
- this.groupBox17.Text = "操作";
- //
- // button20
- //
- this.button20.Location = new System.Drawing.Point(232, 21);
- this.button20.Name = "button20";
- this.button20.Size = new System.Drawing.Size(75, 23);
- this.button20.TabIndex = 13;
- this.button20.Text = "应用";
- this.button20.UseVisualStyleBackColor = true;
- this.button20.Click += new System.EventHandler(this.button20_Click);
- //
- // button21
- //
- this.button21.Location = new System.Drawing.Point(311, 21);
- this.button21.Name = "button21";
- this.button21.Size = new System.Drawing.Size(75, 23);
- this.button21.TabIndex = 10;
- this.button21.Text = "取消";
- this.button21.UseVisualStyleBackColor = true;
- this.button21.Click += new System.EventHandler(this.button21_Click);
- //
- // groupBox18
- //
- this.groupBox18.Controls.Add(this.button22);
- this.groupBox18.Location = new System.Drawing.Point(117, 12);
- this.groupBox18.Name = "groupBox18";
- this.groupBox18.Size = new System.Drawing.Size(394, 59);
- this.groupBox18.TabIndex = 39;
- this.groupBox18.TabStop = false;
- this.groupBox18.Text = "操作";
- //
- // button22
- //
- this.button22.Location = new System.Drawing.Point(307, 22);
- this.button22.Name = "button22";
- this.button22.Size = new System.Drawing.Size(75, 23);
- this.button22.TabIndex = 13;
- this.button22.Text = "应用";
- this.button22.UseVisualStyleBackColor = true;
- //
- // groupBox19
- //
- this.groupBox19.Controls.Add(this.btn_Del);
- this.groupBox19.Controls.Add(this.comboBox_Name);
- this.groupBox19.Controls.Add(this.label29);
- this.groupBox19.Location = new System.Drawing.Point(117, 74);
- this.groupBox19.Name = "groupBox19";
- this.groupBox19.Size = new System.Drawing.Size(394, 58);
- this.groupBox19.TabIndex = 49;
- this.groupBox19.TabStop = false;
- this.groupBox19.Text = "当前使用";
- //
- // btn_Del
- //
- this.btn_Del.Location = new System.Drawing.Point(313, 23);
- this.btn_Del.Name = "btn_Del";
- this.btn_Del.Size = new System.Drawing.Size(75, 23);
- this.btn_Del.TabIndex = 10;
- this.btn_Del.Text = "删除";
- this.btn_Del.UseVisualStyleBackColor = true;
- this.btn_Del.Click += new System.EventHandler(this.btn_Del_Click);
- //
- // comboBox_Name
- //
- this.comboBox_Name.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)));
- this.comboBox_Name.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBox_Name.FormattingEnabled = true;
- this.comboBox_Name.Location = new System.Drawing.Point(77, 25);
- this.comboBox_Name.Name = "comboBox_Name";
- this.comboBox_Name.Size = new System.Drawing.Size(230, 20);
- this.comboBox_Name.TabIndex = 9;
- //
- // label29
- //
- this.label29.AutoSize = true;
- this.label29.Location = new System.Drawing.Point(30, 28);
- this.label29.Name = "label29";
- this.label29.Size = new System.Drawing.Size(41, 12);
- this.label29.TabIndex = 0;
- this.label29.Text = "名称:";
- //
- // groupBox20
- //
- this.groupBox20.Controls.Add(this.checkBox10);
- this.groupBox20.Controls.Add(this.comboBox3);
- this.groupBox20.Controls.Add(this.numericUpDown3);
- this.groupBox20.Controls.Add(this.numericUpDown2);
- this.groupBox20.Controls.Add(this.label35);
- this.groupBox20.Controls.Add(this.label34);
- this.groupBox20.Controls.Add(this.label33);
- this.groupBox20.Location = new System.Drawing.Point(117, 74);
- this.groupBox20.Name = "groupBox20";
- this.groupBox20.Size = new System.Drawing.Size(394, 470);
- this.groupBox20.TabIndex = 17;
- this.groupBox20.TabStop = false;
- this.groupBox20.Text = "设置";
- //
- // checkBox10
- //
- this.checkBox10.AutoSize = true;
- this.checkBox10.Location = new System.Drawing.Point(286, 168);
- this.checkBox10.Name = "checkBox10";
- this.checkBox10.Size = new System.Drawing.Size(84, 16);
- this.checkBox10.TabIndex = 6;
- this.checkBox10.Text = "锁定横纵比";
- this.checkBox10.UseVisualStyleBackColor = true;
- //
- // comboBox3
- //
- this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
- this.comboBox3.FormattingEnabled = true;
- this.comboBox3.Location = new System.Drawing.Point(146, 166);
- this.comboBox3.Name = "comboBox3";
- this.comboBox3.Size = new System.Drawing.Size(121, 20);
- this.comboBox3.TabIndex = 5;
- //
- // numericUpDown3
- //
- this.numericUpDown3.Location = new System.Drawing.Point(146, 108);
- this.numericUpDown3.Maximum = new decimal(new int[] {
- 100000,
- 0,
- 0,
- 0});
- this.numericUpDown3.Name = "numericUpDown3";
- this.numericUpDown3.Size = new System.Drawing.Size(120, 21);
- this.numericUpDown3.TabIndex = 4;
- //
- // numericUpDown2
- //
- this.numericUpDown2.Location = new System.Drawing.Point(146, 44);
- this.numericUpDown2.Maximum = new decimal(new int[] {
- 100000,
- 0,
- 0,
- 0});
- this.numericUpDown2.Name = "numericUpDown2";
- this.numericUpDown2.Size = new System.Drawing.Size(120, 21);
- this.numericUpDown2.TabIndex = 3;
- //
- // label35
- //
- this.label35.AutoSize = true;
- this.label35.Location = new System.Drawing.Point(72, 49);
- this.label35.Name = "label35";
- this.label35.Size = new System.Drawing.Size(65, 12);
- this.label35.TabIndex = 2;
- this.label35.Text = "最大宽度:";
- //
- // label34
- //
- this.label34.AutoSize = true;
- this.label34.Location = new System.Drawing.Point(96, 169);
- this.label34.Name = "label34";
- this.label34.Size = new System.Drawing.Size(41, 12);
- this.label34.TabIndex = 1;
- this.label34.Text = "单位:";
- //
- // label33
- //
- this.label33.AutoSize = true;
- this.label33.Location = new System.Drawing.Point(72, 111);
- this.label33.Name = "label33";
- this.label33.Size = new System.Drawing.Size(65, 12);
- this.label33.TabIndex = 0;
- this.label33.Text = "最大高度:";
- //
- // GeneralSettingDialog
- //
- this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
- this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
- this.AutoScroll = true;
- this.ClientSize = new System.Drawing.Size(533, 561);
- this.Controls.Add(this.groupBox20);
- this.Controls.Add(this.groupBox1);
- this.Controls.Add(this.groupBox5);
- this.Controls.Add(this.groupBox2);
- this.Controls.Add(this.groupBox18);
- this.Controls.Add(this.groupBox10);
- this.Controls.Add(this.groupBox19);
- this.Controls.Add(this.groupBox6);
- this.Controls.Add(this.groupBox3);
- this.Controls.Add(this.groupBox16);
- this.Controls.Add(this.groupBox15);
- this.Controls.Add(this.listView3);
- this.Controls.Add(this.groupBox11);
- this.Controls.Add(this.groupBox4);
- this.Controls.Add(this.groupBoxCaptureSave);
- this.Controls.Add(this.groupBox17);
- this.Controls.Add(this.groupBox14);
- this.Controls.Add(this.groupBox13);
- this.Controls.Add(this.groupBox12);
- this.Controls.Add(this.groupBox7);
- this.Controls.Add(this.groupBox8);
- this.Controls.Add(this.groupBox9);
- this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
- this.MaximizeBox = false;
- this.MinimizeBox = false;
- this.Name = "GeneralSettingDialog";
- this.Text = "常规设置";
- this.Controls.SetChildIndex(this.groupBox9, 0);
- this.Controls.SetChildIndex(this.groupBox8, 0);
- this.Controls.SetChildIndex(this.groupBox7, 0);
- this.Controls.SetChildIndex(this.groupBox12, 0);
- this.Controls.SetChildIndex(this.groupBox13, 0);
- this.Controls.SetChildIndex(this.groupBox14, 0);
- this.Controls.SetChildIndex(this.groupBox17, 0);
- this.Controls.SetChildIndex(this.groupBoxCaptureSave, 0);
- this.Controls.SetChildIndex(this.groupBox4, 0);
- this.Controls.SetChildIndex(this.groupBox11, 0);
- this.Controls.SetChildIndex(this.listView3, 0);
- this.Controls.SetChildIndex(this.groupBox15, 0);
- this.Controls.SetChildIndex(this.groupBox16, 0);
- this.Controls.SetChildIndex(this.groupBox3, 0);
- this.Controls.SetChildIndex(this.groupBox6, 0);
- this.Controls.SetChildIndex(this.groupBox19, 0);
- this.Controls.SetChildIndex(this.groupBox10, 0);
- this.Controls.SetChildIndex(this.groupBox18, 0);
- this.Controls.SetChildIndex(this.groupBox2, 0);
- this.Controls.SetChildIndex(this.groupBox5, 0);
- this.Controls.SetChildIndex(this.groupBox1, 0);
- this.Controls.SetChildIndex(this.groupBox20, 0);
- this.groupBox1.ResumeLayout(false);
- this.groupBox8.ResumeLayout(false);
- this.groupBox8.PerformLayout();
- this.groupBox7.ResumeLayout(false);
- this.groupBox7.PerformLayout();
- this.groupBoxCaptureSave.ResumeLayout(false);
- this.groupBoxCaptureSave.PerformLayout();
- this.groupBox10.ResumeLayout(false);
- this.groupBox10.PerformLayout();
- this.groupBox6.ResumeLayout(false);
- this.groupBox9.ResumeLayout(false);
- this.groupBox9.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
- this.groupBox2.ResumeLayout(false);
- this.groupBox12.ResumeLayout(false);
- this.groupBox3.ResumeLayout(false);
- this.groupBox3.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).EndInit();
- this.groupBox5.ResumeLayout(false);
- this.groupBox5.PerformLayout();
- this.groupBox4.ResumeLayout(false);
- this.groupBox4.PerformLayout();
- this.groupBox11.ResumeLayout(false);
- this.groupBox11.PerformLayout();
- this.panel1.ResumeLayout(false);
- this.panel1.PerformLayout();
- this.panel2.ResumeLayout(false);
- this.panel2.PerformLayout();
- this.panel3.ResumeLayout(false);
- this.panel3.PerformLayout();
- this.panel4.ResumeLayout(false);
- this.panel4.PerformLayout();
- this.panel5.ResumeLayout(false);
- this.panel5.PerformLayout();
- this.groupBox15.ResumeLayout(false);
- this.groupBox15.PerformLayout();
- this.groupBox16.ResumeLayout(false);
- this.groupBox16.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
- this.groupBox13.ResumeLayout(false);
- this.groupBox14.ResumeLayout(false);
- this.groupBox17.ResumeLayout(false);
- this.groupBox18.ResumeLayout(false);
- this.groupBox19.ResumeLayout(false);
- this.groupBox19.PerformLayout();
- this.groupBox20.ResumeLayout(false);
- this.groupBox20.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown3)).EndInit();
- ((System.ComponentModel.ISupportInitialize)(this.numericUpDown2)).EndInit();
- this.ResumeLayout(false);
- }
- #endregion
- #region [画板颜色]
- /// <summary>
- /// 画板点击
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void panel6_Click(object sender, EventArgs e)
- {
- this.colorsForm.UserPrimaryColor = ColorBgra.FromColor(this.panel6.BackColor);
- this.colorsForm.setSaveBtn_Click(new System.EventHandler(this.panel6Changed));
- this.colorsForm.ShowDialog();
- }
- private void panel6Changed(object sender, EventArgs e)
- {
- this.panel6.BackColor = this.colorsForm.UserPrimaryColor.ToColor();
- this.colorsForm.Close();
- }
- private void colorsFormUserPrimaryColorChanged(object sender, ColorEventArgs ce)
- {
- }
- #endregion
- #region [用户信息]
- public void UserInformation()
- {
- textBox_CompanyName.MaxLength = 100;
- textBox_CompanyName.Text = userInfo.CompanyName;
- textBox_Province.MaxLength = 10;
- textBox_Province.Text = userInfo.Province;
- textBox_City.MaxLength = 10;
- textBox_City.Text = userInfo.City;
- textBox_Address.MaxLength = 100;
- textBox_Address.Text = userInfo.Address;
- textBox_Contact.MaxLength = 10;
- textBox_Contact.Text = userInfo.Contact;
- textBox_Phone.MaxLength = 20;
- textBox_Phone.Text = userInfo.Phone;
- textBox_Email.MaxLength = 30;
- textBox_Email.Text = userInfo.Email;
- textBox_Model.Text = userInfo.Model;
- textBox_SN.Text = userInfo.SN;
- textBox_Camera.Text = userInfo.Camera;
- textBox_Interface.Text = userInfo.Interface;
- if (string.IsNullOrEmpty(userInfo.Logo))
- {
- button11.Show();
- button12.Hide();
- pictureBox2.Hide();
- }
- else
- {
- button11.Hide();
- button12.Show();
- if (System.IO.File.Exists(userInfo.Logo))
- {
- pictureBox2.ImageLocation = userInfo.Logo;
- FileStream userPicStream = new FileStream(userInfo.Logo, FileMode.Open, FileAccess.Read);
- pictureBox2.Image = Image.FromStream(userPicStream);
- userPicStream.Close();
- userPicStream.Dispose();
- }
- pictureBox2.Show();
- }
- }
- #endregion
- #region [基础设置]
- public void BasicSettings()
- {
- checkBox7.Checked = config.StartImgStatus == 1 ? false : true;
- checkBox8.Checked = config.AddZEN == 1 ? true : false;
- checkBox9.Checked = config.AddAxioVision == 1 ? true : false;
- textBox4.Text = config.NormalOperation;
- textBox5.Text = config.GeneralAnalysis;
- textBox6.Text = config.DedicatedAnalysis;
-
- if (string.IsNullOrEmpty(config.StartImg))
- {
- button9.Show();
- button10.Hide();
- pictureBox1.Hide();
- }
- else
- {
- button9.Hide();
- button10.Show();
- if (System.IO.File.Exists(config.StartImg))
- {
- pictureBox1.ImageLocation = config.StartImg;
- FileStream imgFileStream = new FileStream(config.StartImg, FileMode.Open, FileAccess.Read);
- pictureBox1.Image = Image.FromStream(imgFileStream);
- imgFileStream.Close();
- imgFileStream.Dispose();
- }
- pictureBox1.Show();
- }
- }
- #endregion
- #region [相机设置]
- private void listView1_SelectedIndexChanged(object sender, EventArgs e)
- {
- if (listView3.FocusedItem != null)
- {
- int idx = listView3.FocusedItem.Index;
- for (int i = 0; i < listView3.Items.Count; i++)
- {
- if (i == idx)
- listView3.Items[i].BackColor = Color.Aqua;
- else
- listView3.Items[i].BackColor = Color.White;
- }
- listView3.Items[idx].Selected = false;
- }
- }
- public void CameraSettings()
- {
- listView3.View = View.Details;
- listView3.Columns.Add("0", 0, HorizontalAlignment.Center);
- listView3.Columns.Add(PdnResources.GetString("Menu.LabelAction.MarkAction.Text"), 50, HorizontalAlignment.Center);
- listView3.Columns.Add(PdnResources.GetString("Menu.Cameramodel.text"), 131, HorizontalAlignment.Center);
- listView3.Columns.Add(PdnResources.GetString("Menu.PixelSize.text"), 300, HorizontalAlignment.Center);
- //listView3.Columns.Add(PdnResources.GetString("Menu.Cameramodelweimi.text"), 300, HorizontalAlignment.Center);
- //listView3.Columns.Add(PdnResources.GetString("Menu.Set.Generalsettings.Sidelengthresolution.text"), 200, HorizontalAlignment.Center);
- var screenList = mic_camerasettings_BLL.FindAll();
- var screenRulesId = config.Camera;
- listView3.BeginUpdate();
- foreach (var s in screenList)
- {
- var lv = new ListViewItem();
- lv.SubItems.Add(screenRulesId == s.id ? "√" : "×");
- lv.SubItems.Add(s.camera_model);
- lv.SubItems.Add(s.pixel_size);
- //lv.SubItems.Add(s.resolution);
- lv.Tag = s.id;
- listView3.Items.Add(lv);
- }
- if (listView3.Items.Count > 0)
- {
- listView3.Items[0].Selected = true;
- listView3.Select();
- }
- else
- {
- var lv = new ListViewItem();
- lv.SubItems.Add("2");
- lv.SubItems.Add("3");
- //lv.SubItems.Add("4");
- lv.Name = "virtualItem";
- listView3.Items.Add(lv);
- }
- listView3.EndUpdate();
- }
- #endregion
- #region [方向设置]
- public void OrientationSetting()
- {
- radioButton6.Checked = config.ZMovementDirection == 0 ? true : false;
- radioButton7.Checked = config.ZMovementDirection == 1 ? true : false;
- radioButton8.Checked = config.XLeftMovementDirection == 0 ? true : false;
- radioButton9.Checked = config.XLeftMovementDirection == 1 ? true : false;
- radioButton10.Checked = config.XRighttMovementDirection == 0 ? true : false;
- radioButton11.Checked = config.XRighttMovementDirection == 1 ? true : false;
- radioButton12.Checked = config.YLeftMovementDirection == 0 ? true : false;
- radioButton13.Checked = config.YLeftMovementDirection == 1 ? true : false;
- radioButton14.Checked = config.YRighttMovementDirection == 0 ? true : false;
- radioButton15.Checked = config.YRighttMovementDirection == 1 ? true : false;
- }
- #endregion
- #region [辅助线设置]
- public void GuideSetting()
- {
- //绑定线样式数据
- this.comboBox2.Items.AddRange(InvariantData.dashStyles);
- //获取xml样式信息
- this.comboBox2.SelectedIndex = Startup.instance.guideStyleModel.lineStyle;
- this.panel6.BackColor = Color.FromArgb(Startup.instance.guideStyleModel.lineColour);
- this.numericUpDown1.Value = Startup.instance.guideStyleModel.lineWidth;
- }
- #endregion
- #region 拍照保存
- bool _isInitCaptureSave = false;
- void InitCaptureSave()
- {
- _isInitCaptureSave = true;
- //初始化字串
- this.groupBox18.Text = PdnResources.GetString("Menu.operation.text");
- groupBoxCaptureSave.Text = PdnResources.GetString("Menu.CaptureSave.text");
- //ckbSave.Text = PdnResources.GetString("SaveToDisk");
- //ckbSaveAndOpen.Text = PdnResources.GetString("SaveAndOpenImage");
- this.button22.Text = PdnResources.GetString("Menu.application.text");
- ckbSave.Checked = config.CaptureSaveMode == 1 || config.CaptureSaveMode == 3 ? true : false/*(config.CaptureSaveMode & 1) > 0*/;
- ckbSaveAndOpen.Enabled = config.CaptureSaveMode != 0 ? true : false/*(config.CaptureSaveMode & 1) > 0*/;
- ckbSaveAndOpen.Checked = config.CaptureSaveMode == 3 || config.CaptureSaveMode == -3 ? true : false/*(config.CaptureSaveMode & 2) > 0*/;
- ckAutoSave.Checked = config.CaptureSaveMode == -1 || config.CaptureSaveMode == -3 ? true : false;
- ckNotSave.Checked = config.CaptureSaveMode == 0 ? true : false;
- textBox9.Text = config.FilePath;
- ckbSave.Click += CkbSave_Click;
- ckAutoSave.Click += ckAutoSave_Click;
- ckNotSave.Click += ckNotSave_Click;
- ckbSaveAndOpen.Click += ckbSaveAndOpen_Click;
- button22.Click += Apply_Click;
- Disable();
- }
- private void CkbSave_Click(object sender, EventArgs e)
- {
- ckbSaveAndOpen.Enabled = true;
- config.CaptureSaveMode = (ckbSave.Checked ? 1 : 0) + (ckbSaveAndOpen.Checked ? 2 : 0);
- Disable();
- }
- private void ckAutoSave_Click(object sender, EventArgs e)
- {
- ckbSaveAndOpen.Enabled = true;
- config.CaptureSaveMode = (ckbSaveAndOpen.Checked ? -2 : 0) + (ckAutoSave.Checked ? -1 : 0);
- Disable();
- }
- private void ckbSaveAndOpen_Click(object sender, EventArgs e)
- {
- int isOpen = 0;
- if (ckbSave.Checked && ckbSaveAndOpen.Checked)
- isOpen = 2;
- else if (ckAutoSave.Checked && ckbSaveAndOpen.Checked)
- isOpen = -2;
- ckbSaveAndOpen.Enabled = ckbSave.Checked || ckAutoSave.Checked ? true : false;
- config.CaptureSaveMode = (ckbSave.Checked ? 1 : 0) + (ckbSaveAndOpen.Checked ? isOpen : 0) + (ckAutoSave.Checked ? -1 : 0);
- }
- private void ckNotSave_Click(object sender, EventArgs e)
- {
- ckbSaveAndOpen.Enabled = false;
- ckbSaveAndOpen.Checked = false;
- config.CaptureSaveMode = 0;
- Disable();
- }
- private void Apply_Click(object sender, EventArgs e)
- {
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create);
- appWorkspace.Widgets.ImageIndexDialog.PreviewRefresh(config.CaptureSaveMode);
- }
- private void button23_Click(object sender, EventArgs e)
- {
- FolderBrowserDialog path = new FolderBrowserDialog();
- path.ShowDialog();
- textBox9.Text = path.SelectedPath;
- config.FilePath = textBox9.Text;
- }
- private void Disable()
- {
- if (this.ckAutoSave.Checked)
- {
- this.label32.Enabled = true;
- this.textBox9.Enabled = true;
- this.button23.Enabled = true;
- }
- else
- {
- this.label32.Enabled = false;
- this.textBox9.Enabled = false;
- this.button23.Enabled = false;
- }
- }
- #endregion
- private void listBox1_SelectedValueChanged(object sender, EventArgs e)
- {
- groupBox3.Hide();
- groupBox4.Hide();
- groupBox5.Hide();
- groupBox6.Hide();
- groupBox7.Hide();
- groupBox8.Hide();
- groupBox9.Hide();
- groupBox10.Hide();
- groupBox11.Hide();
- groupBox2.Hide();
- groupBox12.Hide();
- groupBox13.Hide();
- listView3.Hide();
- groupBox14.Hide();
- groupBox15.Hide();
- groupBox16.Hide();
- groupBox17.Hide();
- groupBox18.Hide();
- groupBox19.Hide();
- groupBoxCaptureSave.Hide();
- groupBox20.Hide();
- button1.Visible = true;
- btn_Save.Visible = false;
- btn_SaveAs.Visible = false;
- if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.Set.Generalsettings.Namingrules.text")))
- {
- groupBox5.Show();
- groupBox2.Show();
- groupBox19.Show();
- button1.Visible = false;
- btn_Save.Visible = true;
- btn_SaveAs.Visible = true;
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.UserInfo.text")))
- {
- groupBox3.Show();
- groupBox4.Show();
- groupBox2.Show();
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.Set.Generalsettings.dotspacingsetting.text")))
- {
- groupBox6.Show();
- groupBox12.Show();
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.Set.Generalsettings.Softwarelanguage.text")))
- {
- groupBox8.Show();
- groupBox2.Show();
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.Set.Generalsettings.Systemreset.text")))
- {
- groupBox7.Show();
- groupBox2.Show();
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.BasicSettings.text")))
- {
- groupBox9.Show();
- groupBox10.Show();
- groupBox11.Show();
- groupBox2.Show();
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.ImageCollection.CameraSetting.Text")))
- {
- groupBox13.Show();
- listView3.Show();
- if (listView3.Items.Count > 0)
- {
- listView3.Items.RemoveByKey("virtualItem");
- }
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.Directionsetting.text")))
- {
- groupBox14.Show();
- groupBox15.Show();
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.Auxiliarylinesettings.text")))
- {
- groupBox16.Show();
- groupBox17.Show();
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.CaptureSave.text")))
- {
- if (!_isInitCaptureSave) InitCaptureSave();
- groupBoxCaptureSave.Show();
- groupBox18.Show();
- }
- else if (listBox1.SelectedItems[0].ToString().Equals("拼图设置"))
- {
- groupBox2.Show();
- groupBox20.Show();
- }
- }
- private void button2_Click(object sender, EventArgs e)
- {
- Close();
- }
-
- private void button1_Click(object sender, EventArgs e)
- {
- if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.Set.Generalsettings.Namingrules.text")))
- {
- //if (string.IsNullOrEmpty(textBox1.Text))
- //{
- // MessageBox.Show(PdnResources.GetString("Menu.pleasewriteNameprefix.text"));
- // return;
- //}
- //if (string.IsNullOrEmpty(textBox2.Text))
- //{
- // MessageBox.Show(PdnResources.GetString("Menu.pleaseNameformat.text"));
- // return;
- //}
- //else
- //{
- // string[] arrs = System.Text.RegularExpressions.Regex.Split(textBox2.Text, @"(?<=\G.{2})(?!$)");
- // foreach (string text in arrs)
- // {
- // if (!text.Equals("%P") && !text.Equals("%I") && !text.Equals("%h") && !text.Equals("%m")
- // && !text.Equals("%s") && !text.Equals("%Y") && !text.Equals("%M") && !text.Equals("%D")
- // && !text.Equals("%G") && !text.Equals("%U"))
- // {
- // MessageBox.Show("名称格式不合法, 请检查");
- // return;
- // }
- // }
- //}
- //if (radioButton1.Checked && !(Regex.IsMatch(textBox3.Text, pattern)))
- //{
- // MessageBox.Show(PdnResources.GetString("Menu.Numberscanbeentet.text") + "!");
- // return;
- //}
- //config.CurrentName = comboBox_Name.Text;
- //config.NamePrefix = textBox1.Text;
- //config.NameFormat = textBox2.Text;
- //config.NumberNum = Convert.ToInt32(comboBox1.SelectedItem);
- //config.NameStatus = radioButton1.Checked == true ? 1 : 2;
- //config.ContinueNum = radioButton1.Checked ? Convert.ToInt32(textBox3.Text) : 1;
- //string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- //string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- //if (FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- //{
- //}
- //else
- //{
- // MessageBox.Show(PdnResources.GetString("Menu.mingconventionsavefailed.text"));
- //}
- }
- else if (listBox1.SelectedItems[0].ToString().Equals("拼图设置"))
- {
- config.MaxHeight = (int)numericUpDown3.Value;
- config.MaxWidth = (int)numericUpDown2.Value;
- config.MaxUnit = comboBox3.SelectedIndex;
- config.MaxLocked = checkBox10.Checked;
- Startup.instance.configModel = config;
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- {
- }
- else
- {
- MessageBox.Show(PdnResources.GetString("Menu.mingconventionsavefailed.text"));
- }
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.UserInfo.text")))
- {
- userInfo.CompanyName = textBox_CompanyName.Text;
- userInfo.Province = textBox_Province.Text;
- userInfo.City = textBox_City.Text;
- userInfo.Address = textBox_Address.Text;
- userInfo.Contact = textBox_Contact.Text;
- userInfo.Phone = textBox_Phone.Text;
- userInfo.Email = textBox_Email.Text;
- if (pictureBox2.ImageLocation == null)
- {
- if (!string.IsNullOrEmpty(userInfo.Logo))
- {
- if (System.IO.File.Exists(userInfo.Logo))
- {
- System.IO.File.Delete(userInfo.Logo);
- }
- }
- }
- userInfo.Logo = pictureBox2.ImageLocation == null ? "" : pictureBox2.ImageLocation;
- userInfo.Model = textBox_Model.Text;
- userInfo.SN = textBox_SN.Text;
- userInfo.Camera = textBox_Camera.Text;
- userInfo.Interface = textBox_Interface.Text;
- string userInfoXml = XmlSerializeHelper.XmlSerialize<UserInfoModel>(userInfo);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\UserInfo.xml";
- if (FileOperationHelper.WriteStringToFile(userInfoXml, filePath, FileMode.Create))
- {
- }
- else
- {
- MessageBox.Show(PdnResources.GetString("Menu.UserInfosavefiled.text"));
- }
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.Set.Generalsettings.dotspacingsetting.text")))
- {
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.Set.Generalsettings.Softwarelanguage.text")))
- {
- if (radioButton3.Checked)
- {
- config.Language = 1;
- }
- else if (radioButton5.Checked)
- {
- config.Language = 2;
- }
- else if (radioButton4.Checked)
- {
- config.Language = 3;
- }
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- {
- MessageBox.Show(PdnResources.GetString("Menu.nguageswitchissuccessfulthesoftware.text"));
- }
- else
- {
- MessageBox.Show(PdnResources.GetString("Menu.twarelanguageswitchfailed.text"));
- }
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.Set.Generalsettings.Systemreset.text")))
- {
- if (!checkBox1.Checked && !checkBox2.Checked && !checkBox3.Checked && !checkBox4.Checked && !checkBox5.Checked && !checkBox6.Checked)
- {
- MessageBox.Show(PdnResources.GetString("Menu.asefirstchecatleastoneite.text"));
- return;
- }
- config.LabelInformationReset = checkBox1.Checked ? 1 : 0;
- config.MeasurementInformationReset = checkBox2.Checked ? 1 : 0;
- config.LogReset = checkBox3.Checked ? 1 : 0;
- config.ShortcutBarReset = checkBox4.Checked ? 1 : 0;
- config.ToolbarReset = checkBox5.Checked ? 1 : 0;
- config.HotKeyReset = checkBox6.Checked ? 1 : 0;
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- {
- MessageBox.Show(PdnResources.GetString("Menu.emresetsuccessfulthesoftw.text") + "!");
- }
- else
- {
- MessageBox.Show(PdnResources.GetString("Menu.Systemresetfailure.text"));
- }
- }
- else if (listBox1.SelectedItems[0].ToString().Equals(PdnResources.GetString("Menu.BasicSettings.text")))
- {
- config.StartImgStatus = checkBox7.Checked ? 2 : 1;
- if (pictureBox1.ImageLocation == null)
- {
- if (!string.IsNullOrEmpty(config.StartImg))
- {
- if (System.IO.File.Exists(config.StartImg))
- {
- System.IO.File.Delete(config.StartImg);
- }
- }
- }
- config.StartImg = pictureBox1.ImageLocation == null ? "" : pictureBox1.ImageLocation;
- config.NormalOperation = textBox4.Text;
- config.GeneralAnalysis = textBox5.Text;
- config.DedicatedAnalysis = textBox6.Text;
- appWorkspace.Widgets.ImageIndexDialog.PreviewRefresh(config.CaptureSaveMode); ;
- config.AddZEN = checkBox8.Checked ? 1 : 2;
- config.AddAxioVision = checkBox9.Checked ? 1 : 2;
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- {
- Startup.instance.configModel.NormalOperation = config.NormalOperation;
- Startup.instance.configModel.GeneralAnalysis = config.GeneralAnalysis;
- Startup.instance.configModel.DedicatedAnalysis = config.DedicatedAnalysis;
- if (this.appWorkspace != null && this.appWorkspace.Widgets != null && this.appWorkspace.Widgets.ProjectEngineering != null && !this.appWorkspace.Widgets.ProjectEngineering.IsDisposed)
- {
- this.appWorkspace.Widgets.ProjectEngineering.InitializeTreeViewDetailData();
- }
- }
- else
- {
- MessageBox.Show(PdnResources.GetString("Menu.Theoperationfailure.text"));
- }
- }
- }
- private void listView2_DoubleClick(object sender, EventArgs e)
- {
- if (listView2.Items.Count == 0)
- {
- MessageBox.Show(PdnResources.GetString("Menu.Thereisnolistofdata.text"));
- return;
- }
- string id = listView2.FocusedItem.SubItems[6].Text;
- if (config.DotPitchId == Convert.ToInt32(id))
- {
- MessageBox.Show(PdnResources.GetString("Menu.Thepointditanceisenabled.text"));
- return;
- }
- config.DotPitchId = Convert.ToInt32(id);
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- {
- //MessageBox.Show(PdnResources.GetString("Menu.nablesuccessfui.text"));
- listView2.BeginUpdate();
- int nRowOrder = 0;
- int nRowOrders = listView2.Items.Count;//行数
- for (nRowOrder = 0; nRowOrder < nRowOrders; nRowOrder++)//遍历listView1的每一行
- {
- ListViewItem lvi = listView2.Items[nRowOrder];
- if (lvi.SubItems[1].Text == "√")
- {
- lvi.SubItems[1].Text = "×";
- }
- }
- var Index = listView2.SelectedItems[0].Index;
- var lv = listView2.Items[Index];
- lv.SubItems[1].Text = "√";
- listView2.EndUpdate();
- }
- else
- {
- MessageBox.Show(PdnResources.GetString("Menu.Enablethefailure.text"));
- }
- }
- private void button3_Click(object sender, EventArgs e)
- {
- if (listView2.Items.Count == 0)
- {
- MessageBox.Show(PdnResources.GetString("Menu.Thereisnolistofdata.text"));
- return;
- }
- DialogResult dr;
- dr = MessageBox.Show(PdnResources.GetString("Menu.eyousureyouwanttodeletethisdi.text") + "?", PdnResources.GetString("Menu.Edit.Delete.Text"), MessageBoxButtons.OKCancel,
- MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
- if (dr == DialogResult.OK)
- {
- string id = string.Empty;
- if (listView2.FocusedItem != null)
- {
- id = listView2.FocusedItem.SubItems[6].Text;
- }
- else
- {
- id = listView2.Items[0].SubItems[6].Text;
- }
- var point = mic_screen_rules_BLL.FindDefault(Convert.ToInt32(id));
- if (point == null || point.delete_flag == 1)
- {
- MessageBox.Show(PdnResources.GetString("Menu.Abnormalinformation.text"));
- }
- point.delete_flag = 1;
- mic_screen_rules_BLL.Update(point);
- if (listView2.SelectedItems.Count > 0)
- {
- var Index = listView2.SelectedItems[0].Index;
- listView2.Items[Index].Remove();
- }
- else
- {
- listView2.Items[0].Remove();
- }
- }
- else if (dr == DialogResult.Cancel)
- {
- }
- if (listView2.Items.Count > 0)
- {
- listView2.Items[0].Selected = true;
- listView2.Select();
- }
- }
- private void button4_Click(object sender, EventArgs e)
- {
- string id = string.Empty;
- using (PointDataDialog pd = new PointDataDialog(id, listView2))
- {
- pd.Text = PdnResources.GetString("Menu.Set.Generalsettings.Adddotpitch.text");
- pd.ShowDialog();
- }
- }
- private void button5_Click(object sender, EventArgs e)
- {
- string id = string.Empty;
- int thisIndex = 0;
- if (listView2.Items.Count == 0)
- {
- MessageBox.Show(PdnResources.GetString("Menu.Thereisnolistofdata.text"));
- return;
- }
- if (listView2.FocusedItem != null)
- {
- id = listView2.FocusedItem.SubItems[6].Text;
- thisIndex = listView2.Items.IndexOf(listView2.FocusedItem);
- }
- else
- {
- id = "1";
- }
- using (PointDataDialog pd = new PointDataDialog(id, listView2, thisIndex))
- {
- pd.Text = PdnResources.GetString("Menu.Editdistance.text");
- pd.ShowDialog();
- }
- }
- private void button6_Click(object sender, EventArgs e)
- {
- FolderBrowserDialog path = new FolderBrowserDialog();
- path.ShowDialog();
- textBox4.Text = path.SelectedPath;
- }
- private void button7_Click(object sender, EventArgs e)
- {
- FolderBrowserDialog path = new FolderBrowserDialog();
- path.ShowDialog();
- textBox5.Text = path.SelectedPath;
- }
- private void button8_Click(object sender, EventArgs e)
- {
- FolderBrowserDialog path = new FolderBrowserDialog();
- path.ShowDialog();
- textBox6.Text = path.SelectedPath;
- }
-
- private void button9_Click(object sender, EventArgs e)
- {
- OpenFileDialog file = new OpenFileDialog();
- file.Filter = "All Image Files|*.bmp;*.jpeg;*.jpg;*.png";
- DialogResult dr;
- dr = file.ShowDialog();
- if (dr == DialogResult.OK)
- {
- var lastName = Path.GetExtension(file.FileName);
- if (lastName != ".png" && lastName != ".jpg" && lastName != ".jpeg" && lastName != ".bmp")
- {
- MessageBox.Show(PdnResources.GetString("Menu.Pleaseuploadpicturese.text"));
- return;
- }
- var fileName = Path.GetFullPath(file.FileName);
- byte[] bytes = ReadFileToByte(fileName);
- var saveFilePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + $"\\{DateTime.Now.ToString("yyyyMMddHHmmss") + file.SafeFileName}";
- WriteByteToFile(bytes, saveFilePath);
- button9.Hide();
- button10.Show();
- pictureBox1.Show();
- pictureBox1.ImageLocation = saveFilePath;
- FileStream pFileStream = new FileStream(saveFilePath, FileMode.Open, FileAccess.Read);
- pictureBox1.Image = Image.FromStream(pFileStream);
- pFileStream.Close();
- pFileStream.Dispose();
- }
- }
- private void button10_Click(object sender, EventArgs e)
- {
- button9.Show();
- button10.Hide();
- pictureBox1.ImageLocation = null;
- pictureBox1.Hide();
- }
- #region [读文件到byte数组]
- /// <summary>
- /// 读文件到byte[]
- /// </summary>
- /// <param name="fileName">硬盘文件路径</param>
- /// <returns></returns>
- public static byte[] ReadFileToByte(string fileName)
- {
- FileStream pFileStream = null;
- byte[] pReadByte = new byte[0];
- try
- {
- pFileStream = new FileStream(fileName, FileMode.Open, FileAccess.Read);
- BinaryReader r = new BinaryReader(pFileStream);
- r.BaseStream.Seek(0, SeekOrigin.Begin); //将文件指针设置到文件开
- pReadByte = r.ReadBytes((int)r.BaseStream.Length);
- return pReadByte;
- }
- catch
- {
- return pReadByte;
- }
- finally
- {
- if (pFileStream != null)
- pFileStream.Close();
- }
- }
- #endregion [读文件到byte数组]
- #region [写byte数组到fileName]
- /// <summary>
- /// 写byte[]到fileName
- /// </summary>
- /// <param name="pReadByte">byte[]</param>
- /// <param name="fileName">保存至硬盘路径</param>
- /// <returns></returns>
- public static void WriteByteToFile(byte[] pReadByte, string fileName)
- {
- FileStream pFileStream = null;
- try
- {
- pFileStream = new FileStream(fileName, FileMode.OpenOrCreate);
- pFileStream.Write(pReadByte, 0, pReadByte.Length);
- }
- catch (Exception ex)
- {
- throw ex;
- }
- finally
- {
- if (pFileStream != null)
- {
- pFileStream.Flush();
- pFileStream.Close();
- pFileStream.Dispose();
- }
- }
- }
- #endregion [写byte数组到fileName]
- private void button11_Click(object sender, EventArgs e)
- {
- OpenFileDialog file = new OpenFileDialog();
- file.Filter = "All Image Files|*.bmp;*.jpeg;*.jpg;*.png";
- DialogResult dr;
- dr = file.ShowDialog();
- if (dr == DialogResult.OK)
- {
- var lastName = Path.GetExtension(file.FileName);
- if (String.Compare(lastName, ".png", true) != 0 && String.Compare(lastName, ".jpg", true) != 0 && String.Compare(lastName, ".jpeg", true) != 0 && String.Compare(lastName, ".bmp", true) != 0)
- {
- MessageBox.Show(PdnResources.GetString("Menu.Pleaseuploadpicturese.text"));
- return;
- }
- var fileName = Path.GetFullPath(file.FileName);
- byte[] bytes = ReadFileToByte(fileName);
- var saveFilePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + $"\\{DateTime.Now.ToString("yyyyMMddHHmmss") + file.SafeFileName}";
- WriteByteToFile(bytes, saveFilePath);
- button11.Hide();
- button12.Show();
- pictureBox2.Show();
- pictureBox2.ImageLocation = saveFilePath;
- FileStream pFileStream = new FileStream(saveFilePath, FileMode.Open, FileAccess.Read);
- pictureBox2.Image = Image.FromStream(pFileStream);
- pFileStream.Close();
- pFileStream.Dispose();
- }
- }
- private void button12_Click(object sender, EventArgs e)
- {
- button11.Show();
- button12.Hide();
- pictureBox2.ImageLocation = null;
- pictureBox2.Hide();
- }
- private void button13_Click(object sender, EventArgs e)
- {
- if (listView2.Items.Count == 0)
- {
- MessageBox.Show(PdnResources.GetString("Menu.Thereisnolistofdata.text"));
- return;
- }
- if (listView2.FocusedItem == null)
- {
- MessageBox.Show(PdnResources.GetString("Menu.seselecthedotditancedatafi.text"));
- return;
- }
- string id = listView2.FocusedItem.SubItems[6].Text;
- if (config.DotPitchId == Convert.ToInt32(id))
- {
- //MessageBox.Show(PdnResources.GetString("Menu.Thepointditanceisenabled.text"));
- return;
- }
- config.DotPitchId = Convert.ToInt32(id);
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- {
- //MessageBox.Show(PdnResources.GetString("Menu.nablesuccessfui.text"));
- listView2.BeginUpdate();
- int nRowOrder = 0;
- int nRowOrders = listView2.Items.Count;//行数
- for (nRowOrder = 0; nRowOrder < nRowOrders; nRowOrder++)//遍历listView1的每一行
- {
- ListViewItem lvi = listView2.Items[nRowOrder];
- if (lvi.SubItems[1].Text == "√")
- {
- lvi.SubItems[1].Text = "×";
- }
- }
- var Index = listView2.SelectedItems[0].Index;
- var lv = listView2.Items[Index];
- lv.SubItems[1].Text = "√";
- listView2.EndUpdate();
- }
- else
- {
- MessageBox.Show(PdnResources.GetString("Menu.Enablethefailure.text"));
- }
- }
- private void radioButton2_CheckedChanged(object sender, EventArgs e)
- {
- textBox3.ReadOnly = true;
- //textBox3.Text = "";
- }
- private void radioButton1_CheckedChanged(object sender, EventArgs e)
- {
- textBox3.ReadOnly = false;
- }
- private void listBox1_DrawItem(object sender, DrawItemEventArgs e)
- {
- e.DrawBackground();
- e.DrawFocusRectangle();
- StringFormat strFmt = new System.Drawing.StringFormat();
- strFmt.Alignment = StringAlignment.Center; //文本垂直居中
- strFmt.LineAlignment = StringAlignment.Center; //文本水平居中
- e.Graphics.DrawString(listBox1.Items[e.Index].ToString(), e.Font, new SolidBrush(Color.Black), e.Bounds, strFmt);
- }
- /// <summary>
- /// 相机设置添加按钮
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void button16_Click(object sender, EventArgs e)
- {
- string id = string.Empty;
- using (CameraSettingsAddDialog pd = new CameraSettingsAddDialog(id, listView3))
- {
- pd.ShowDialog();
- }
- }
- /// <summary>
- /// 相机设置编辑按钮
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void button15_Click(object sender, EventArgs e)
- {
- string id = string.Empty;
- int thisIndex = 0;
- if (listView3.Items.Count == 0)
- {
- MessageBox.Show(PdnResources.GetString("Menu.Thereisnolistofdata.text"));
- return;
- }
- if (listView3.FocusedItem != null)
- {
- id = listView3.FocusedItem.Tag.ToString();
- thisIndex = listView3.Items.IndexOf(listView3.FocusedItem);
- }
- else
- {
- MessageBox.Show(PdnResources.GetString("Menu.Pleaseselecadirectoryfirst.Text"));
- return;
- //id = "1";
- }
- using (CameraSettingsAddDialog pd = new CameraSettingsAddDialog(id, listView3, thisIndex))
- {
- pd.ShowDialog();
- }
- }
- /// <summary>
- /// 相机设置删除按钮
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void button17_Click(object sender, EventArgs e)
- {
- if (listView3.Items.Count == 0)
- {
- MessageBox.Show(PdnResources.GetString("Menu.Dataisemptyi.text") + "!");
- return;
- }
- if (listView3.FocusedItem == null)
- {
- MessageBox.Show(PdnResources.GetString("Menu.Pleaseselecadirectoryfirst.Text"));
- //id = listView3.Items[0].Tag.ToString();
- return;
- }
- DialogResult dr;
- dr = MessageBox.Show(PdnResources.GetString("Menu.eyousureyouwantodeletet.text"), PdnResources.GetString("Menu.Edit.Delete.Text"), MessageBoxButtons.OKCancel,
- MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
- if (dr == DialogResult.OK)
- {
- string id = string.Empty;
- if (listView3.FocusedItem != null)
- {
- id = listView3.FocusedItem.Tag.ToString();
- }
- //else
- //{
- // MessageBox.Show(PdnResources.GetString("Menu.Pleaseselecadirectoryfirst.Text"));
- // //id = listView3.Items[0].Tag.ToString();
- // return;
- //}
- var point = mic_camerasettings_BLL.FindDefault(Convert.ToInt32(id));
- if (point == null || point.delete_flag == 1)
- {
- MessageBox.Show(PdnResources.GetString("Menu.Abnormalinformation.text"));
- }
- point.delete_flag = 1;
- mic_camerasettings_BLL.Update(point);
- if (listView3.SelectedItems.Count > 0)
- {
- var Index = listView3.SelectedItems[0].Index;
- listView3.Items[Index].Remove();
- }
- else
- {
- listView3.Items[0].Remove();
- }
- }
- else if (dr == DialogResult.Cancel)
- {
- }
- if (listView3.Items.Count > 0)
- {
- listView3.Items[0].Selected = true;
- listView3.Select();
- }
- }
- /// <summary>
- /// 应用按钮
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void button14_Click(object sender, EventArgs e)
- {
- if (listView3.Items.Count == 0)
- {
- MessageBox.Show(PdnResources.GetString("Menu.Thereisnolistofdata.text"));
- return;
- }
- if (listView3.FocusedItem == null)
- {
- MessageBox.Show("请选择要应用的数据");
- return;
- }
- string id = listView3.FocusedItem.Tag.ToString();
- if (config.Camera == Convert.ToInt32(id))
- {
- //MessageBox.Show(PdnResources.GetString("Menu.Thepointditanceisenabled.text"));
- return;
- }
- config.Camera = Convert.ToInt32(id);
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- {
- //MessageBox.Show(PdnResources.GetString("Menu.nablesuccessfui.text"));
- listView3.BeginUpdate();
- int nRowOrder = 0;
- int nRowOrders = listView3.Items.Count;//行数
- for (nRowOrder = 0; nRowOrder < nRowOrders; nRowOrder++)//遍历listView1的每一行
- {
- ListViewItem lvi = listView3.Items[nRowOrder];
- if (lvi.SubItems[1].Text == "√")
- {
- lvi.SubItems[1].Text = "×";
- }
- }
- var Index = listView3.SelectedItems.Count < 1 ? listView3.FocusedItem.Index : listView3.SelectedItems[0].Index;
- var lv = listView3.Items[Index];
- lv.SubItems[1].Text = "√";
- listView3.EndUpdate();
- }
- else
- {
- MessageBox.Show(PdnResources.GetString("Menu.Enablethefailure.text"));
- }
- //this.Close();
- //MessageBox.Show(PdnResources.GetString("Menu.Applicationsuccessfully.Text")+ "!");
- }
- /// <summary>
- /// 方向设置确定按钮
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void button18_Click(object sender, EventArgs e)
- {
- if (radioButton6.Checked)
- {
- config.ZMovementDirection = 0;
- }
- else if (radioButton7.Checked)
- {
- config.ZMovementDirection = 1;
- }
- if (radioButton8.Checked)
- {
- config.XLeftMovementDirection = 0;
- }
- else if (radioButton9.Checked)
- {
- config.XLeftMovementDirection = 1;
- }
- if (radioButton10.Checked)
- {
- config.XRighttMovementDirection = 0;
- }
- else if (radioButton11.Checked)
- {
- config.XRighttMovementDirection = 1;
- }
- if (radioButton12.Checked)
- {
- config.YLeftMovementDirection = 0;
- }
- else if (radioButton13.Checked)
- {
- config.YLeftMovementDirection = 1;
- }
- if (radioButton14.Checked)
- {
- config.YRighttMovementDirection = 0;
- }
- else if (radioButton15.Checked)
- {
- config.YRighttMovementDirection = 1;
- }
- string configXml = XmlSerializeHelper.XmlSerialize<ConfigModel>(config);
- string filePath = Application.StartupPath + "\\Config\\" + Startup.instance.SettingPrefix + "\\Config.xml";
- if (!FileOperationHelper.WriteStringToFile(configXml, filePath, FileMode.Create))
- {
- MessageBox.Show(PdnResources.GetString("Menu.Directionsettingfailed.text") + "!");
- //MessageBox.Show(PdnResources.GetString("Menu.Directionsetsuccessfully.text")+"!");
- //this.Close();
- }
- //else
- //{
- // MessageBox.Show(PdnResources.GetString("Menu.Directionsettingfailed.text")+ "!");
- //}
- }
- /// <summary>
- /// 方向设置取消按钮
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void button19_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- /// <summary>
- /// 辅助线样式应用按钮
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void button20_Click(object sender, EventArgs e)
- {
- Startup.instance.guideStyleModel.lineStyle = this.comboBox2.SelectedIndex;
- Startup.instance.guideStyleModel.lineColour = this.panel6.BackColor.ToArgb();
- Startup.instance.guideStyleModel.lineWidth = this.numericUpDown1.Value;
- //另存为XML
- string stageModelXml = XmlSerializeHelper.XmlSerialize<GuideStyleModel>(Startup.instance.guideStyleModel);
- string filePath = Application.StartupPath + @"\Config\Default\SetUp\GuideStyle.xml";
- FileOperationHelper.WriteStringToFile(stageModelXml, filePath, FileMode.Create);
- }
- /// <summary>
- /// 辅助线样式取消按钮
- /// </summary>
- /// <param name="sender"></param>
- /// <param name="e"></param>
- private void button21_Click(object sender, EventArgs e)
- {
- this.Close();
- }
- }
- }
|