//public TreeNode node; //public Panel(String aname, Func<int, int, int, int, int, Panel> ashow, int ax, int ay, int apos, int asign = -1, UI_Mode uim = UI_Mode.UI_Checkbox, int fAlt = -1, string text = "", int fAlt2 = -1, string text2 = "", int fAlt3 = -1, string text3 = "", int fAlt4 = -1, string text4 = "", int str_id=0, int str_count=0, string strings="") { public Panel(String aname, ShowPanel ashow, int ax, int ay, int apos, int asign = -1, UI_Mode uim = UI_Mode.UI_Checkbox, int fAlt = -1, string text = "", int fAlt2 = -1, string text2 = "", int fAlt3 = -1, string text3 = "", int fAlt4 = -1, string text4 = "", int str_id = 0, int str_count = 0, string strings = "", int mAlt5_mask = 0, string text5 = "") { name = aname; show = ashow; x = ax; y = ay; pos = apos; sign = asign; Altf = fAlt; alt_text = text; Alt2 = fAlt2; alt2_text = text2; Alt3 = fAlt3; alt3_text = text3; Alt4 = fAlt4; alt4_text = text4; ui_mode = uim; string_id = str_id; string_count = str_count; this.strings = strings; Alt5 = 0; alt5_text = text5; Alt5_mask = mAlt5_mask; //OSD.osd_switch_once updatePanelStrings(string_id, str_count, strings); }
public void copyFrom(Panel other) { name = other.name; x = other.x; y = other.y; pos = other.pos; sign = other.sign; show = other.show; Altf = other.Altf; alt_text = other.alt_text; Alt2 = other.Alt2; alt2_text = other.alt2_text; Alt3 = other.Alt3; alt3_text = other.alt3_text; Alt4 = other.Alt4; alt4_text = other.alt4_text; ui_mode = other.ui_mode; Alt5 = other.Alt5; alt5_text = other.alt5_text; Alt5_mask = other.Alt5_mask; Alt6 = other.Alt6; alt6_text = other.alt6_text; Alt6_mask = other.Alt6_mask; string_id = other.string_id; string_count = other.string_count; }
//Awake is called before Start() void Awake() { //Get a component reference to ShowPanels attached to this object, store in showPanels variable showPanel = GetComponent<ShowPanel> (); //showPanel.HidePausePanel (); //Get a component reference to StartButton attached to this object, store in startScript variable //startScript = GetComponent<StartOptions> (); }
private void AdjacentBtn_MouseDown(object sender, MouseEventArgs e) { RoundButton roundBtn = (RoundButton)sender; ShowRGB = roundBtn.RGB; CNCSNum.Text = Tool.AuxiliaryAPI.RGB2xyz(tempRGB); ShowPanel.Refresh(); }
private void getRezult_Click(object sender, EventArgs e) { decimal rezult = (ZNO1Mark.Value * koef1.Value) + (ZNO2Mark.Value * koef2.Value) + (ZNO3Mark.Value * koef3.Value) + (ZNO4Mark.Value * AtestatKoef.Value); rezultbox.Text = Math.Round(rezult, 0).ToString(); if (rezult < currentSpec.Minbal) { Verdict.Text = "Ви не пройшли на цю спеціальність"; Verdict.BackColor = Color.Red; } else if (rezult == currentSpec.Minbal) { Verdict.Text = "Ви на границі Держзамовленя"; Verdict.BackColor = Color.Yellow; } else if (rezult > currentSpec.Minbal) { Verdict.Text = "Ви стопроцентно пройшли на цю спеціальність"; Verdict.BackColor = Color.Green; foreach (var univer in pData.UniverList) { if (univer.Name == ChooseUniver.Text) { foreach (var fac in univer.FacultetList) { if (fac.NameOfFac == ChooseFac.Text) { foreach (var spec in fac.SpecList) { if (spec.Name == ChooseSpec.Text) { ShowPanel.AppendText(i + ":" + "Університет: " + univer.Name + "\n\n" + "Факультет :" + fac.NameOfFac + "\n\n" + "Спеціальність: " + spec.Name + "\n\n" + "Ваш бал : " + Math.Round(rezult, 0) + "\n\nМінімальний бал : " + currentSpec.Minbal + "\n\n\n\n"); i++; } } } } } } } }
private void SaveRichtextBox_Click(object sender, EventArgs e) { SaveFileDialog saveFile1 = new SaveFileDialog(); saveFile1.DefaultExt = "*.rtf"; saveFile1.Filter = "RTF Files|*.rtf"; if (saveFile1.ShowDialog() == System.Windows.Forms.DialogResult.OK && saveFile1.FileName.Length > 0) { ShowPanel.SaveFile(saveFile1.FileName, RichTextBoxStreamType.PlainText); } }
private void Grid_MouseDown(object sender, MouseButtonEventArgs e) { if (!isShow) { ShowPanel.BeginAnimation(Grid.MarginProperty, MarginB_Animation); IntPtr hBmp_arrow = Images.arrowUp.GetHbitmap(); this.Arrow.Source = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(hBmp_arrow, IntPtr.Zero, Int32Rect.Empty, System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions()); Utils.DeleteObject(hBmp_arrow); this.Maximize.Visibility = System.Windows.Visibility.Visible; this.Close.Visibility = System.Windows.Visibility.Visible; this.KeyBoardControl.Visibility = System.Windows.Visibility.Visible; this.ScreenMode.Visibility = System.Windows.Visibility.Visible; this.front_canvas.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation); KeyBoardControl.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation); Maximize.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation); Close.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation); RdsIp.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation); ScreenMode.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightB_Animation); } else { ShowPanel.BeginAnimation(Grid.MarginProperty, MarginE_Animation); IntPtr hBmp_arrow = Images._1427375812_double_arrow_down_32.GetHbitmap(); this.Arrow.Source = System.Windows.Interop.Imaging.CreateBitmapSourceFromHBitmap(hBmp_arrow, IntPtr.Zero, Int32Rect.Empty, System.Windows.Media.Imaging.BitmapSizeOptions.FromEmptyOptions()); Utils.DeleteObject(hBmp_arrow); this.front_canvas.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation); ScreenMode.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation); Maximize.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation); Close.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation); RdsIp.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation); KeyBoardControl.BeginAnimation(System.Windows.Shapes.Rectangle.HeightProperty, heightE_Animation); this.Maximize.Visibility = System.Windows.Visibility.Hidden; this.Close.Visibility = System.Windows.Visibility.Hidden; this.KeyBoardControl.Visibility = System.Windows.Visibility.Hidden; this.ScreenMode.Visibility = System.Windows.Visibility.Hidden; } isShow = !isShow; }
static void Main(string[] args) { ShowPanel.ShowStart(); }
private void ClearShowPanel_Click(object sender, EventArgs e) { ShowPanel.Clear(); }
private void AdjacentBtn_MouseLeave(object sender, EventArgs e) { tempRGB = ShowRGB; CNCSNum.Text = Tool.AuxiliaryAPI.RGB2xyz(tempRGB); ShowPanel.Refresh(); }
public void PanelStatus(EngineData.Screens panel) { ShowPanel?.Invoke(panel); }