private void ExpandScript(bool state) { Transitions.TransitionType_CriticalDamping trans = new Transitions.TransitionType_CriticalDamping(600); Transitions.Transition.run(DetailsSplitter, "SplitterDistance", (state ? 0 : DetailsSplitter.Width / 2), trans); }
private void ShowHideScript(bool state) { Transitions.TransitionType_CriticalDamping trans = new Transitions.TransitionType_CriticalDamping(600); Transitions.Transition.run(DetailsSplitter, "SplitterDistance", (state ? DetailsSplitter.Width / 2 : DetailsSplitter.Width - 76), trans); }
private void ShowDetails(bool state) { Transitions.TransitionType_CriticalDamping trans = new Transitions.TransitionType_CriticalDamping(600); Transitions.Transition.run(MainSplitter, "SplitterDistance", (state ? 620 : MainSplitter.Width), trans); }
private void DisappearPCCEditStuff(bool state) { if (MainListView.InvokeRequired) this.Invoke(new Action(() => DisappearPCCEditStuff(state))); else { Transitions.TransitionType_CriticalDamping trans = new Transitions.TransitionType_CriticalDamping(400); Transitions.Transition.run(PCCSplitter, "SplitterDistance", (state) ? PCCSplitter.Height : PCCSplitter.Height - 62, trans); } }
private void ShowPCCContextPanel(bool state) { if (!PCCContextPanel.InvokeRequired) Task.Run(new Action(() => ShowPCCContextPanel(state))); else { bool tempstate = state; if (PCCsCheckListBox.Items.Count == 0) tempstate = false; Transitions.TransitionType_CriticalDamping trans = new Transitions.TransitionType_CriticalDamping(300); //Transitions.Transition.run(PreviewTabPages, "Height", ((tempstate) ? 495 : 525), trans); } }
private void DetailsHideButton_Click(object sender, EventArgs e) { Transitions.ITransitionType transition = new Transitions.TransitionType_CriticalDamping(700); if (DetailsHideButton.Text == ">>") { PropertiesWidth = splitContainer3.Width - splitContainer3.Panel2.Width; TabSearchSplitter.Visible = false; SearchBox.Visible = false; SearchCountLabel.Visible = false; Transitions.Transition.run(splitContainer3, "SplitterDistance", splitContainer3.Width - 40, transition); DetailsHideButton.Text = "<<"; } else { Transitions.Transition.run(splitContainer3, "SplitterDistance", PropertiesWidth, transition); DetailsHideButton.Text = ">>"; TabSearchSplitter.Visible = true; SearchBox.Visible = true; SearchCountLabel.Visible = true; } }
private void ShowContextPanel(bool state) { Transitions.ITransitionType trans = new Transitions.TransitionType_CriticalDamping(400); Transitions.Transition.run(ContextPanel, "Height", (!state) ? 0 : 30, trans); }