private void ChildBloons_Button_Click(object sender, EventArgs e) { if (Panel3.Visible == true) { Panel3.Hide(); if (SwitchPanel.Text == "Page 2") { Panel1.Show(); } else if (SwitchPanel.Text == "Page 1") { Panel2.Show(); } ChildBloons_Button.Text = "Child Bloons"; } else { Panel1.Hide(); Panel2.Hide(); Panel3.Show(); if (SwitchPanel.Text == "Page 2") { ChildBloons_Button.Text = "Page 1"; } else if (SwitchPanel.Text == "Page 1") { ChildBloons_Button.Text = "Page 2"; } } }
private void MainTimer_Tick(object sender, EventArgs e) { Panel1.Invalidate(); Panel2.Invalidate(); Panel3.Invalidate(); Panel4.Invalidate(); }
void Start() { SoundManager.instance.BgmApply(Bgm.RuleEditor); Panel2.SetActive(false); Panel3.SetActive(false); Panel4.SetActive(false); }
private bool Stick1Check; //這是搖桿的CD時間 因為搖桿右鍵按住的時候會向右跑到底 並不會像鍵盤按右鍵一樣 只跳一格 所以要給搖桿按鍵CD時間 void Start() { Stick1Check = true; //搖桿可以按左右控制 StageNum = 1; //一開始選擇的場景為第一個場景 panel3 = transform.GetComponent <Panel3>(); //載入panel3腳本 skill5 = transform.GetComponent <Skill5>(); //載入skill5腳本 _main = transform.GetComponent <Click1>(); //載入click腳本 }
IEnumerator playFadeOut() { isPlaying = true; Color color = FadeImage.color; fade3 = 0f; color.a = Mathf.Lerp(fade1, fade2, fade3); while (color.a < 1f) { fade3 += Time.deltaTime; color.a = Mathf.Lerp(fade1, fade2, fade3 * 2); FadeImage.color = color; yield return(null); } switch (PanelNumber) { case 0: Mainpanel.SetActive(true); prevpanel.SetActive(false); break; case 1: Mainpanel.SetActive(false); prevpanel.SetActive(true); break; case 2: Mainpanel.SetActive(false); prevpanel.SetActive(true); break; case 3: Mainpanel.SetActive(false); prevpanel.SetActive(true); break; case 4: Mainpanel.SetActive(false); prevpanel.SetActive(true); break; case 5: Mainpanel.SetActive(false); prevpanel.SetActive(true); break; case 6: Mainpanel.SetActive(false); Panel3.SetActive(false); prevpanel.SetActive(true); break; default: break; } StartCoroutine("playFadeIn"); }
protected void Edycja_Button_Command(object sender, CommandEventArgs e) { pole_edycja.Visible = true; Pan_amp.Visible = false; Pan_I.Visible = false; Pan_faz.Visible = false; Panel3.Focus(); uwaga.Text = ""; }
protected void PSPICE_Click(object sender, EventArgs e) { txtR1.Text = "20"; txtR2.Text = "30"; txtL.Text = "0,01"; txtC.Text = "0,0002"; txtAmp.Text = "230"; txtF.Text = "50"; txtfstart.Text = "0,001"; txtfzakres.Text = "100000"; Panel3.Focus(); }
void Start() { panel3 = transform.GetComponent <Panel3>(); _main = transform.GetComponent <Click1>(); PlyPreSkillNum[0] = 0; PlyPreSkillNum[1] = 0; PlyPreSkillNum[2] = 0; PlyPreSkillNum[3] = 0; Stick1Check = true; Stick2Check = true; }
/// <summary> /// Sets interface screens according to given input /// </summary> /// <param name="step"></param> public void SetInterface(int step) { if (step == 0) { Intro.SetActive(true); Intro.SetActive(true); CloseBtn.SetActive(false); Panel1.SetActive(false); Panel2.SetActive(false); Panel3.SetActive(false); PanelOver.SetActive(false); } else if (step == 1) { Intro.SetActive(false); CloseBtn.SetActive(true); Panel1.SetActive(true); Settings1.SetActive(false); Panel2.SetActive(false); Panel3.SetActive(false); PanelOver.SetActive(false); } else if (step == 2) { Intro.SetActive(false); CloseBtn.SetActive(true); Panel1.SetActive(false); Panel2.SetActive(true); Settings2.SetActive(false); Panel3.SetActive(false); PanelOver.SetActive(false); } else if (step == 3) { Intro.SetActive(false); CloseBtn.SetActive(true); Panel1.SetActive(false); Panel2.SetActive(false); Panel3.SetActive(true); PanelOver.SetActive(false); } else if (step == 4) { Intro.SetActive(false); CloseBtn.SetActive(true); Panel1.SetActive(false); Panel2.SetActive(false); Panel3.SetActive(false); PanelOver.SetActive(true); } }
public override void Focus() { if (!Panel1Collapsed) { Panel1.Focus(); } else if (!Panel2Collapsed) { Panel2.Focus(); } else if (!Panel3Collapsed) { Panel3.Focus(); } }
protected void Edycja2_Button_Command(object sender, CommandEventArgs e) { if (pole_edycja.Visible) { Panel3.Focus(); Pan_amp.Visible = false; Pan_I.Visible = true; Pan_faz.Visible = false; kompilacja(); } else { uwaga.Text = "Najpierw należy przeprowadzić symulację, edytując jej parametry!"; } }
// Use this for initialization void Start() { FadeImage.enabled = false; Mainpanel.SetActive(true); Panel1.SetActive(false); Panel2.SetActive(false); Panel3.SetActive(false); Panel4.SetActive(false); Panel5.SetActive(false); Gamepanel.SetActive(false); Resultpanel.SetActive(false); prevpanel = Mainpanel; PanelNumber = 0; gamemode = false; Timer = false; }
public AudioSource ButtonVoice; //玩家按鍵的聲音 void Start() { Screen.showCursor = false; //設定滑鼠關閉 CurrenSense = "start"; //目前出現的介面為Start people2 = transform.GetComponent <People2>(); //載入People2腳本 panel3 = transform.GetComponent <Panel3>(); //載入Panel3腳本 stage6 = GetComponent <Stage6>(); //載入Stage6腳本 Start1.SetActive(true); //開啟start1的介面 People2.SetActive(false); //關閉選人數的介面 Panel3.SetActive(false); //關閉選角介面 Stage6.SetActive(false); //關閉場景介面 stage6.enabled = false; //關閉選場景介面 _Stage6Interval = Stage6Interval; _Panel3Interval = Panel3Interval; //讓_Panel3Interval載入Panel3Interval數字 }
private void SwitchPanel_Click(object sender, EventArgs e) { Panel3.Hide(); ChildBloons_Button.Text = "Child bloons"; if (SwitchPanel.Text == "Page 2") { Panel1.Visible = false; Panel2.Visible = true; SwitchPanel.Text = "Page 1"; } else if (SwitchPanel.Text == "Page 1") { Panel1.Visible = true; Panel2.Visible = false; SwitchPanel.Text = "Page 2"; } }
public override void OnLayout(IGUIContext ctx, RectangleF bounds) { base.OnLayout(ctx, bounds); if (!Panel1Collapsed && !Panel2Collapsed) { Splitter1.OnLayout(ctx, this.Bounds); } if (!Panel3Collapsed && !Panel2Collapsed) { Splitter2.OnLayout(ctx, this.Bounds); } /*** * if (Panel1Collapsed && Panel2Collapsed && !Panel3Collapsed) * Panel3.OnLayout (ctx, bounds); * * if (Panel1Collapsed && !Panel2Collapsed && Panel3Collapsed) * Panel2.OnLayout (ctx, bounds); * * if (!Panel1Collapsed && Panel2Collapsed && Panel3Collapsed) * Panel1.OnLayout (ctx, bounds); * * if (!Panel1Collapsed && !Panel3Collapsed) * Panel2.OnLayout (ctx, bounds); ***/ if (Panel1.IsVisibleEnabled) { Panel1.OnLayout(ctx, new RectangleF(Left, Top, Splitter1.Left - Left, Height)); } if (Panel2.IsVisibleEnabled) { Panel2.OnLayout(ctx, new RectangleF(Splitter1.Right, Top, Splitter2.Left - Splitter1.Right, Height)); } if (Panel3.IsVisibleEnabled) { Panel3.OnLayout(ctx, new RectangleF(Splitter2.Right, Top, Right - Splitter2.Right, Height)); } }
protected void btnExport_Click(object sender, EventArgs e) { Response.ContentType = "application/pdf"; Response.AddHeader("content-disposition", "attachment;filename=Panel.pdf"); Response.Cache.SetCacheability(HttpCacheability.NoCache); StringWriter sw = new StringWriter(); HtmlTextWriter hw = new HtmlTextWriter(sw); Panel3.RenderControl(hw); StringReader sr = new StringReader(sw.ToString()); Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 100f, 0f); HTMLWorker htmlparser = new HTMLWorker(pdfDoc); PdfWriter.GetInstance(pdfDoc, Response.OutputStream); pdfDoc.Open(); htmlparser.Parse(sr); pdfDoc.Close(); Response.Write(pdfDoc); Response.End(); }
public async Task ShowOpening() { OpeningPanel.SetActive(true); await Panel1.Appear_C(); await new WaitUntil(() => nextClicked); nextClicked = false; IngameManager.Instance.Data.GroupName = NameInput.text; Panel2.transform.SetAsLastSibling(); await Panel1.Disappear_C(); await Panel2.Appear_C(); await new WaitUntil(() => nextClicked); nextClicked = false; var idolList = await AuditionPicker.Instance.Show(20, 10); for (int i = 0; i < idolList.Count; i++) { idolList[i].Index = IngameManager.Instance.Data.CurrentIdolIndex; IngameManager.Instance.Data.Idols.Add(IngameManager.Instance.Data.CurrentIdolIndex++, idolList[i]); } await Panel2.Disappear_C(); var songData = Song.SongData.Get(3); foreach (var song in songData) { song.Index = IngameManager.Instance.Data.CurrentSongIndex; IngameManager.Instance.Data.Songs.Add(IngameManager.Instance.Data.CurrentSongIndex++, song); song.SetAsEarned(); } IngameManager.Instance.Data.Money += 70; await Panel3.Appear_C(); await new WaitUntil(() => nextClicked); nextClicked = false; OpeningPanel.SetActive(false); }
private void Btn2_Click(object sender, EventArgs e) { Panel2.Hide(); Panel3.Show(); }
protected void lnkGenerateInvoice_Click(object sender, EventArgs e) { LinkButton lnk = (LinkButton)sender; var s = from a in dc.Sales join ord in dc.Order_By_Medical_Stores on a.OrderIDByMS equals ord.OrderIDByMS join ords in dc.Order_by_Medical_Store_Per_Medicines on ord.OrderIDByMS equals ords.OrderIDByMS join medi in dc.Medicine_In_Stocks on ords.MedicineID equals medi.MedicineID where a.SaleID == Convert.ToDecimal(lnk.CommandArgument) && ords.Discount > 0 select new { medi.MedicineID, medi.MedicineName, medi.PackSize, medi.BatchNo, medi.ExpiryDate, medi.Price, ords.Amount, ords.Discount, ords.DiscountAmount, ords.NetAmount }; var withoutdc = from a in dc.Sales join ord in dc.Order_By_Medical_Stores on a.OrderIDByMS equals ord.OrderIDByMS join ords in dc.Order_by_Medical_Store_Per_Medicines on ord.OrderIDByMS equals ords.OrderIDByMS join medi in dc.Medicine_In_Stocks on ords.MedicineID equals medi.MedicineID where a.SaleID == Convert.ToDecimal(lnk.CommandArgument) && ords.Discount == 0 select new { medi.MedicineID, medi.MedicineName, medi.PackSize, medi.BatchNo, medi.ExpiryDate, medi.Price, ords.Amount, // ords.Discount, // ords.DiscountAmount, ords.NetAmount }; var chk = from a in dc.Sales_Invoices where a.SaleID == Convert.ToDecimal(lnk.CommandArgument) select a.SaleID; if (!chk.Any()) { var sp = (from a in dc.Sales join ord in dc.Order_By_Medical_Stores on a.OrderIDByMS equals ord.OrderIDByMS join ords in dc.Order_by_Medical_Store_Per_Medicines on ord.OrderIDByMS equals ords.OrderIDByMS join medi in dc.Medicine_In_Stocks on ords.MedicineID equals medi.MedicineID where a.SaleID == Convert.ToDecimal(lnk.CommandArgument) select ords.NetAmount).Sum(); var sa = (from a in dc.Sales join ord in dc.Order_By_Medical_Stores on a.OrderIDByMS equals ord.OrderIDByMS join ords in dc.Order_by_Medical_Store_Per_Medicines on ord.OrderIDByMS equals ords.OrderIDByMS join medi in dc.Medicine_In_Stocks on ords.MedicineID equals medi.MedicineID where a.SaleID == Convert.ToDecimal(lnk.CommandArgument) select ords.Amount).Sum(); Sales_Invoice si = new Sales_Invoice { SaleID = Convert.ToDecimal(lnk.CommandArgument), Price = sp, Quantity = sa, sInvoiceDate = DateTime.Now }; dc.Sales_Invoices.InsertOnSubmit(si); dc.SubmitChanges(); } if (s.Any()) { var medicalstore = from a in dc.Sales join ord in dc.Order_By_Medical_Stores on a.OrderIDByMS equals ord.OrderIDByMS join ords in dc.Order_by_Medical_Store_Per_Medicines on ord.OrderIDByMS equals ords.OrderIDByMS join medical in dc.Medical_Stores on ord.MedicalStoreID equals medical.MedicalStoreID join medi in dc.Medicine_In_Stocks on ords.MedicineID equals medi.MedicineID where a.SaleID == Convert.ToDecimal(lnk.CommandArgument) select new { medical.MedicalStoreName, medical.Phone, medical.Address, medical.Email }; lblStoreName.Text = medicalstore.First().MedicalStoreName; lblPhone.Text = Convert.ToString(medicalstore.First().Phone); lblAddress.Text = medicalstore.First().Address; lblemail.Text = medicalstore.First().Email; var sale = from a in dc.Sales_Invoices where a.SaleID == Convert.ToInt32(lnk.CommandArgument) select new { a.Price, a.sInvoiceDate }; var net = (from a in dc.Sales join ord in dc.Order_By_Medical_Stores on a.OrderIDByMS equals ord.OrderIDByMS join ords in dc.Order_by_Medical_Store_Per_Medicines on ord.OrderIDByMS equals ords.OrderIDByMS where a.SaleID == Convert.ToInt32(lnk.CommandArgument) select ords.NetAmount).Sum(); lblAmount.Text = Convert.ToString(net);//Convert.ToString( NetTotal); //Convert.ToString(sale.First().Price); lblDate.Text = Convert.ToString(sale.First().sInvoiceDate); gvInvoice.DataSource = s; gvInvoice.DataBind(); ModalPopupExtender1.Show(); } if (withoutdc.Any()) { var medicalstore = from a in dc.Sales join ord in dc.Order_By_Medical_Stores on a.OrderIDByMS equals ord.OrderIDByMS join ords in dc.Order_by_Medical_Store_Per_Medicines on ord.OrderIDByMS equals ords.OrderIDByMS join medical in dc.Medical_Stores on ord.MedicalStoreID equals medical.MedicalStoreID join medi in dc.Medicine_In_Stocks on ords.MedicineID equals medi.MedicineID where a.SaleID == Convert.ToDecimal(lnk.CommandArgument) select new { medical.MedicalStoreName, medical.Phone, medical.Address, medical.Email }; Label txtBox = (Label)Panel3.FindControl("lblStoreNamewdc"); txtBox.Text = medicalstore.First().MedicalStoreName; lblPhonewdc.Text = Convert.ToString(medicalstore.First().Phone); lblStoreAddresswdc.Text = medicalstore.First().Address; lblEmailwdc.Text = medicalstore.First().Email; var sale = from a in dc.Sales_Invoices where a.SaleID == Convert.ToInt32(lnk.CommandArgument) select new { a.Price, a.sInvoiceDate }; var net = (from a in dc.Sales join ord in dc.Order_By_Medical_Stores on a.OrderIDByMS equals ord.OrderIDByMS join ords in dc.Order_by_Medical_Store_Per_Medicines on ord.OrderIDByMS equals ords.OrderIDByMS where a.SaleID == Convert.ToInt32(lnk.CommandArgument) select ords.NetAmount).Sum(); lblAmountwdc.Text = Convert.ToString(net); lblDatewdc.Text = Convert.ToString(sale.First().sInvoiceDate); gvWithoutdc.DataSource = withoutdc; gvWithoutdc.DataBind(); ModalPopupExtender2.Show(); } }
public void PanelChange3() { Panel3.SetActive(false); Panel4.SetActive(true); }
private void SB3_Click(object sender, EventArgs e) { SB3.Visible = false; models[2] = new RoadModel(crashServices[1]); Panel3.Invalidate(); }
void Start() { panel3 = transform.GetComponent <Panel3>(); _main = transform.GetComponent <Click1>(); }
private void btn3_Click(object sender, EventArgs e) { Panel3.Hide(); Panel4.Show(); }
public override void OnLayout(IGUIContext ctx, RectangleF bounds) { base.OnLayout(ctx, bounds); bool visible1 = Panel1.Visible && Panel2.Visible && !Panel1Collapsed && !Panel2Collapsed; bool visible2 = Panel2.Visible && Panel3.Visible && !Panel2Collapsed && !Panel3Collapsed; if (!visible1 && !visible2) { visible1 = true; } Splitter1.Visible = visible1; Splitter2.Visible = visible2; if (Splitter1.Visible) { Splitter1.OnLayout(ctx, bounds); } if (Splitter2.Visible) { Splitter2.OnLayout(ctx, bounds); } if (Orientation == SplitOrientation.Vertical) { if (Panel1.Visible) { if (Panel2.Visible) { Panel1.OnLayout(ctx, new RectangleF(Left, Top, Splitter1.Left - Left, Height)); } else if (Panel3.Visible) { Panel1.OnLayout(ctx, new RectangleF(Left, Top, Splitter1.Left - Left, Height)); } else { Panel1.OnLayout(ctx, new RectangleF(Left, Top, Width, Height)); } } if (Panel2.Visible) { if (Panel1.Visible) { if (Panel3.Visible) { Panel2.OnLayout(ctx, new RectangleF(Splitter1.Right, Top, Splitter2.Left - Splitter1.Right, Height)); } else { Panel2.OnLayout(ctx, new RectangleF(Splitter1.Right, Top, Right - Splitter1.Right, Height)); } } else if (Panel3.Visible) { Panel2.OnLayout(ctx, new RectangleF(Splitter1.Right, Top, Splitter2.Left - Left, Height)); } else { Panel2.OnLayout(ctx, new RectangleF(Left, Top, Width, Height)); } } if (Panel3.Visible) { if (Panel1.Visible) { Panel3.OnLayout(ctx, new RectangleF(Left, Top, Right - Splitter1.Right, Height)); } else if (Panel2.Visible) { Panel3.OnLayout(ctx, new RectangleF(Left, Top, Right - Splitter2.Right, Height)); } else { Panel3.OnLayout(ctx, new RectangleF(Left, Top, Width, Height)); } } } else // *** Orientation = Horizontal { if (Panel1.Visible) { if (Panel2.Visible) { Panel1.OnLayout(ctx, new RectangleF(Left, Top, Width, Splitter1.Top - Top)); } else if (Panel3.Visible) { Panel1.OnLayout(ctx, new RectangleF(Left, Top, Width, Splitter1.Top - Top)); } else { Panel1.OnLayout(ctx, new RectangleF(Left, Top, Width, Height)); } } if (Panel2.Visible) { if (Panel1.Visible) { if (Panel3.Visible) { Panel2.OnLayout(ctx, new RectangleF(Splitter1.Right, Top, Width, Splitter2.Top - Splitter1.Bottom)); } else { Panel2.OnLayout(ctx, new RectangleF(Splitter1.Right, Top, Width, Bottom - Splitter1.Bottom)); } } else if (Panel3.Visible) { Panel2.OnLayout(ctx, new RectangleF(Left, Top, Width, Splitter2.Top - Top)); } else { Panel2.OnLayout(ctx, new RectangleF(Left, Top, Width, Height)); } } if (Panel3.Visible) { if (Panel2.Visible) { Panel3.OnLayout(ctx, new RectangleF(Left, Splitter2.Bottom, Width, Bottom - Splitter2.Bottom)); } else if (Panel1.Visible) { Panel3.OnLayout(ctx, new RectangleF(Left, Splitter1.Bottom, Width, Bottom - Splitter1.Bottom)); } else { Panel3.OnLayout(ctx, new RectangleF(Left, Top, Width, Height)); } } } }