private void CreateForm() { this.Controls.Clear(); System.Windows.Forms.DataGridView grid = new System.Windows.Forms.DataGridView(); grid.Dock = DockStyle.Fill; grid.ColumnCount = 3; grid.Columns[0].Name = "symbol działki"; List <DataGridViewRow> rows = new List <DataGridViewRow>(); for (int i = 0; i < models.Count; i++) { DataGridViewRow row = new DataGridViewRow(); row.Cells.Add(new DataGridViewTextBoxCell()); var button = new ButtonCell(this); button.Value = "Usuń"; ResolutionModel model = models.ElementAt(i); string name = config.getConfig("Wydzielenia", "precintSymbol"); object result = null; model.resolution.TryGetValue(name, out result); row.Cells[0].Value = result.ToString(); row.Cells[0].ReadOnly = true; row.Cells.Add(button); ZoomButton zoom = new ZoomButton(this); zoom.Value = "Zbliż"; row.Cells.Add(zoom); grid.Rows.Add(row); } grid.Size = new Size(300, 300); grid.Visible = true; this.Controls.Add(grid); }
//the zoom function private void pictureBox1_Click(object sender, EventArgs e) { if ((numberOfPresses % 2 == 0) || (numberOfPresses == 0)) { this.Location = new Point(0, 0); this.Size = Screen.PrimaryScreen.WorkingArea.Size; pictureBox1.Size = Screen.PrimaryScreen.WorkingArea.Size; pictureBox1.BringToFront(); ZoomButton.BringToFront(); } else { this.Size = new Size(778, 412); pictureBox1.Size = new Size(500, 300); } numberOfPresses += 1; }
public MeetingButton(ZoomMeeting meeting, ZoomButton button) { label_1 : int num1 = -696454798; while (true) { int num2 = -1831530081; uint num3; switch ((num3 = (uint)(num1 ^ num2)) % 5U) { case 0: goto label_1; case 1: this.Button = button; num1 = (int)num3 * 791734846 ^ -1295907163; continue; case 2: num1 = (int)num3 * 980859637 ^ 501261883; continue; case 3: this.Meeting = meeting; num1 = (int)num3 * 1485137876 ^ 682844648; continue; case 4: goto label_3; default: goto label_7; } } label_7: return; label_3 :; }
public void Initialize(IntPtr handle, ZoomButton button) { label_1 : int num1 = 975042409; while (true) { int num2 = 1062673104; uint num3; switch ((num3 = (uint)(num1 ^ num2)) % 4U) { case 0: goto label_3; case 1: this.ViewHandle = handle; num1 = (int)num3 * 759087212 ^ -317149946; continue; case 2: this.Button = button; num1 = (int)num3 * 1916638805 ^ 1608683830; continue; case 3: goto label_1; default: goto label_6; } } label_6: return; label_3 :; }
public ButtonEditorViewModel(ZoomButton button) { label_1 : int num1 = 425168424; while (true) { int num2 = 2091582366; uint num3; switch ((num3 = (uint)(num1 ^ num2)) % 12U) { case 0: this.Button = button; num1 = (int)num3 * 1824552629 ^ -1860462646; continue; case 1: this.LoadCommands(); num1 = (int)num3 * -1237590838 ^ -1126111733; continue; case 2: num1 = (int)num3 * 1152718020 ^ -546465109; continue; case 3: num1 = (int)num3 * -728689764 ^ -2081081715; continue; case 4: int num4 = ButtonEditorViewModel.\u206D((ViewModelBase)this) ? -439823412 : (num4 = -1018148577); int num5 = (int)num3 * -936751449; num1 = num4 ^ num5; continue; case 5: num1 = 1788459914; continue; case 6: num1 = (int)num3 * 1361709931 ^ 1538835683; continue; case 7: goto label_1; case 8: num1 = (int)num3 * 296494031 ^ -2045363909; continue; case 9: this.Button = new ZoomButton(); num1 = (int)num3 * 746150442 ^ -175910270; continue; case 10: num1 = (int)num3 * 1566535313 ^ -717488524; continue; case 11: goto label_3; default: goto label_14; } } label_14: return; label_3 :; }
internal void RemoveButton(ZoomButton button) { object dataLock = SharedData.dataLock; bool flag = false; try { SharedData.\u206E(dataLock, ref flag); label_2: int num1 = -237930759; while (true) { int num2 = -90087806; uint num3; switch ((num3 = (uint)(num1 ^ num2)) % 6U) { case 0: ((Collection <ZoomButton>) this.MeetingButtons).Remove(button); num1 = (int)num3 * -1310858613 ^ -965948481; continue; case 1: num1 = (int)num3 * -1134958852 ^ -1050688; continue; case 2: goto label_12; case 3: button = (ZoomButton)null; num1 = -1756225546; continue; case 4: int num4 = ((Collection <ZoomButton>) this.MeetingButtons).Contains(button) ? 1281453152 : (num4 = 1150094729); int num5 = (int)num3 * -2090776782; num1 = num4 ^ num5; continue; case 5: goto label_2; default: goto label_8; } } label_8: return; label_12 :; } finally { if (flag) { label_10 : int num1 = -1268003640; while (true) { int num2 = -90087806; uint num3; switch ((num3 = (uint)(num1 ^ num2)) % 3U) { case 0: goto label_10; case 2: SharedData.\u206B(dataLock); num1 = (int)num3 * -332114335 ^ 1897897051; continue; default: goto label_14; } } } label_14 :; } }
internal static ZoomButton CreateButton(SQLiteDataReader cReader) { label_1: int num1 = -2120293011; ZoomButton zoomButton1; while (true) { int num2 = -1704603019; uint num3; ZoomButton zoomButton2; switch ((num3 = (uint)(num1 ^ num2)) % 13U) { case 0: goto label_1; case 1: zoomButton2.ButtonX = cReader.GetFieldValueInt(\u003CModule\u003E.\u202A <string>(240715330U)); num1 = (int)num3 * 186380617 ^ -606682920; continue; case 2: num1 = (int)num3 * -1941207105 ^ 879425159; continue; case 3: zoomButton2.WindowWidth = cReader.GetFieldValueInt(\u003CModule\u003E.\u206B <string>(3435639904U)); num1 = (int)num3 * -774111270 ^ -54198022; continue; case 4: zoomButton2.ButtonY = cReader.GetFieldValueInt(\u003CModule\u003E.\u206A <string>(2263636494U)); zoomButton2.RequiresRightClick = cReader.GetFieldValueInt(\u003CModule\u003E.\u202A <string>(720547036U)) == 1; num1 = -1571677933; continue; case 5: zoomButton2.MeetingId = cReader.GetFieldValueString(\u003CModule\u003E.\u202A <string>(3041963409U)); num1 = (int)num3 * 20485245 ^ 1979446061; continue; case 6: zoomButton2.ZoomWindowType = (ZoomWindowType)cReader.GetFieldValueInt(\u003CModule\u003E.\u206A <string>(3071765281U)); zoomButton2.WindowHeight = cReader.GetFieldValueInt(\u003CModule\u003E.\u206B <string>(2169446332U)); num1 = (int)num3 * 1101611712 ^ -241432053; continue; case 7: zoomButton2.ResultingWindowType = (ZoomWindowType)cReader.GetFieldValueInt(\u003CModule\u003E.\u206B <string>(3645992511U)); num1 = (int)num3 * 1322781875 ^ -97070848; continue; case 8: num1 = (int)num3 * -931489166 ^ 1625892635; continue; case 9: num1 = (int)num3 * 657690541 ^ 1596414237; continue; case 11: zoomButton2.DateModified = cReader.GetFieldValueDateTime(\u003CModule\u003E.\u206B <string>(3397799221U)); zoomButton2.DateCreated = cReader.GetFieldValueDateTime(\u003CModule\u003E.\u206A <string>(3689749305U)); zoomButton1 = zoomButton2; num1 = (int)num3 * -1163412607 ^ -1110236795; continue; case 12: zoomButton2 = new ZoomButton(); zoomButton2.Uri = cReader.GetFieldValueLong(\u003CModule\u003E.\u200E <string>(3666502981U)); num1 = (int)num3 * 1608300731 ^ -782701900; continue; default: goto label_14; } } label_14: return(zoomButton1); }
public ClickButton(ZoomWindow window, ZoomButton button) { this.Meeting = this.Engine.ActiveMeeting; this.Window = window; this.Button = button; }