示例#1
0
        void Label_Clicked(object sender, EventArgs e)
        {
            Label label = (Label)sender;
            VlcControl control = (VlcControl)label.Tag;

            string now = DateTime.Now.ToString("yyyy-MM-dd hhmmss");
            control.TakeSnapshot(now + ".jpg");
        }
示例#2
0
        private void takesnap(object sender, RoutedEventArgs e)
        {
            string path = System.DateTime.Now.ToString("yyyy-MM-dd") + "-" + System.DateTime.Now.ToString("hh-mm-ss") + ".png";

            control.TakeSnapshot(location.Text + "/" + path);
        }